GNU social JP
  • FAQ
  • Login
GNU social JPは日本のGNU socialサーバーです。
Usage/ToS/admin/test/Pleroma FE
  • Public

    • Public
    • Network
    • Groups
    • Featured
    • Popular
    • People

Embed Notice

HTML Code

Corresponding Notice

  1. Embed this notice
    Leah Rowe is not a Rowebot (libreleah@mas.to)'s status on Sunday, 22-Mar-2026 20:36:35 JSTLeah Rowe is not a RowebotLeah Rowe is not a Rowebot
    in reply to

    /* SPDX-License-Identifier: MIT */

    int
    slen(const char *s,
    size_t maxlen,
    size_t *rval)
    {
    size_t ch;

    if (s == NULL ||
    rval == NULL) {

    errno = EFAULT;
    return -1;
    }

    for (ch = 0;
    ch < maxlen && s[ch] != '\0';
    ch++);

    if (ch == maxlen) {
    /* unterminated */
    errno = EFAULT;
    return -1;
    }

    *rval = ch;
    return 0;
    }

    /* we've been doing unix wrong since 1982 */

    In conversationabout 4 months ago from mas.topermalink
  • Help
  • About
  • FAQ
  • TOS
  • Privacy
  • Source
  • Version
  • Contact

GNU social JP is a social network, courtesy of GNU social JP管理人. It runs on GNU social, version 2.0.2-dev, available under the GNU Affero General Public License.

Creative Commons Attribution 3.0 All GNU social JP content and data are available under the Creative Commons Attribution 3.0 license.