Posts by VLun • 1 point
1 post
-
0
votes1
answer137
viewsQ: How to read a certain number of lines in C?
This is my code that reads and searches a certain word, void* pthread_wordCounter(void* parameter){ int count = 0; size_t linesize = 0; char *linebuf = 0; ssize_t linelenght=0; static const char…