strtok()
is not reentrant so it should not be used from threaded applications, use strtok_r()
instead.
More Related Contents:
- what the output of this code and why?
- printf anomaly after “fork()”
- How to calculate the CPU usage of a process by PID in Linux from C?
- How to recursively list directories in C on Linux?
- Why does this program print “forked!” 4 times?
- How does kernel get an executable binary file running under linux?
- Using strtok() in nested loops in C?
- How do I execute an external program within C code in Linux with arguments?
- stdout thread-safe in C on Linux?
- Threadsafe vs re-entrant
- Creating a new directory in C
- POSIX API call to list all the pthreads running in a process
- Whole one core dedicated to single process
- Error: Address already in use while binding socket with address but the port number is shown free by `netstat`
- C: correct usage of strtok_r
- How to get network adapter stats in linux/Mac OSX?
- Bind failed: Address already in use
- Why do I have to define LD_LIBRARY_PATH with an export every time I run my application?
- Is there a macro definition to check the Linux kernel version?
- flock vs lockf on Linux
- Implementation of multiple pipes in C
- Force free() to return malloc memory back to OS
- What’s a good C decompiler? [closed]
- Sharing memory between processes through the use of mmap()
- How to set the IP address from C in linux
- In C, what’s the size of stdout buffer?
- How to create a new Linux kernel scheduler
- executing default signal handler
- Code for malloc and free
- Duplicated output using printf() and fork() in C