Wellcome to memchr's website

Last login: Tue Nov 15 13:39:23 2022 from ::1

[memchr@github.com ~/src/memchr]$ ls

loader.c main.c map_gen.c memchr.c time.c Makefile

[memchr@github.com ~/src/memchr]$ make

cc -Wall main.c -o main.o

cc -Wall time.c -o time.o

cc -Wall loader.c -o loader.o

cc -Wall map_gen.c -o map_gen.o

cc -Wall memchr.c -o memchr.o

memchr.c:5:21: warning: ‘buf’ is used uninitialized [-Wuninitialized]

5 | char* pos = memchr(buf, 'm', 1024);

| ^~~~~~~~~~~~~~~~~~~~~~

cc -o memchr main.o time.o loader.o map_gen.o memchr.o

[memchr@github.com ~/src/memchr]$ ./memchr

[1] 181762 segmentation fault (core dumped) ./memchr