INNER CODE UNIT · C

last

mittinatten/freesasa · src/classifier.c:177

    last = linebuf + strlen(linebuf) - 1;
    while (*first == ' ' || *first == '\t')
        ++first;

    if (last > first)
        while (*last == ' ' || *last == '\t' || *last == '\n')
            --last;

    if (first >= last) {
        line[0] = '\0';
        return 0;
    }

    *(last + 1) = '\0';
    strncpy(line, first, MAX_LINE_LEN);

    return strlen(line);
}

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…