Questions tagged [strdup]

The strdup() function duplicates a string

The strdup() function, available in various languages, returns a pointer to a new string which is a duplicate of the original string.

http://msdn.microsoft.com/en-us/library/windows/desktop/bb759969(v=vs.85).aspx
https://developer.apple.com/library/mac/documentation/Darwin/Reference/ManPages/man3/strdup.3.html
http://linux.die.net/man/3/strdup

122 questions
-3
votes
1 answer

I am making linux command Program by C-language. and I want to know what is wrong the code?

I wanna ask about how to make exec process programing by C. Now, I typed like these code, and I use strtok and strdup. my code wrong assign value from input, so could you see my code and could you teach what is wrong in the code. #include…
-4
votes
1 answer

Redefining strdup\Function Already has a Body

I'm working on a little project to try to get the Source Engine 2013 code working under the Qt Creator IDE. My ultimate goal is to turn it into a CMake project to throw out Valve's limited VPC system, though I don't know exactly how that works yet,…
Michael Barth
  • 45
  • 1
  • 5
1 2 3
8
9