Hi!

please tell what is the function intead of getdelim to work as getdelim
in windows. because it is supported for windows envirnmnt na..

Recommended Answers

All 2 Replies

try copying the following line at the top of your file

#define _GNU_SOURCE

That will only work on MS-Windows if you use MinGW compiler -- I know of no other compiler that has that non-standard C function. fgets() will work almost like getline() but there is no equivalent to getdelim(). Too bad they aren't standard C functions because they both seem to be pretty useful.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.