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:34:36 JSTLeah Rowe is not a RowebotLeah Rowe is not a Rowebot

    /* SPDX-License-Identifier: MIT */

    int
    scmp(const char *a,
    const char *b,
    size_t maxlen,
    int *rval)
    {
    size_t ch;
    unsigned char ac;
    unsigned char bc;

    if (a == NULL ||
    b == NULL ||
    rval == NULL) {

    errno = EFAULT;
    return -1;
    }

    for (ch = 0; ch < maxlen; ch++) {

    ac = (unsigned char)a[ch];
    bc = (unsigned char)b[ch];

    if (ac != bc) {
    *rval = ac - bc;
    return 0;
    }

    if (ac == '\0') {
    *rval = 0;
    return 0;
    }
    }

    errno = EFAULT;
    return -1;
    }

    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.