Benign freebsd Download

fixwhite.c

Source uses a buffer write callCalls a character-class helper
SHA-25691b732dba5649521914ee389a7250970e14aabf899286e69c8cabe69f858d366
MaleculeO(Er)H(F)

Evidence

English function-word token "the" lines 2–10
2:49… g>
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must repr …
English function-word token "for" lines 16–17
16:6… PLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
17 * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE …
imports <ctype.h> lines 23–35
23:47… VISED OF THE POSSIBILITY OF
24 * SUCH DAMAGE.
25 */
26
27#include <sys/cdefs.h>
28#include <ctype.h>
29#include <stdbool.h>
30#include <stdio.h>
31#include <stdlib.h>
32
33static char *queue = NULL;
34static size_t queuelen = 0, queuesize = 0;
35static off_t column = 0; …
Source uses a buffer write call lines 120–135
120:15… i < column; i += 8)
121 queue[queuelen++] = '\t';
122 }
123 }
124
125 if (fwrite(queue, 1, queuelen, stdout) != queuelen) {
126 perror("write");
127 exit(1);
⋯8 lines
Calls a character-class helper lines 157–169
⋯5 lines
162
163 while ((c = readchar()) != EOF) {
164 if (isspace(c))
165 /* Save whitespace. */
166 savewhite(c, leading);
167 else {
168 /* Reprint whitespace and print regular character. */
169 pri …

Keyboard shortcuts on this page: j for the next sample, k for the previous one, x to go back to the feed, d to download the original bytes, r to re-queue the sample for analysis.