Questions tagged [wcsdup]

wcsdup is a POSIX function that duplicate a wide-character string

Description

wcsdup is a POSIX function that duplicate a wide-character string. The wcsdup() function is the wide-character equivalent of the strdup function.

References

http://man7.org/linux/man-pages/man3/wcsdup.3.html

2 questions
2
votes
2 answers

How do you best utilize wcsdup?

I'm writing code and a good portion of it requires returning wchar arrays. Returning wstrings aren't really an option (although I can use them) and I know I can pass a pointer as an argument and populate that, but I'm looking specifically to return…
TMenninger
  • 33
  • 1
  • 5
0
votes
2 answers

Dynamically loading a couple of missing functions

I have a binary, advertised as working on Mac OS X 10.6, but that tries to link wcsdup(), a function that was only added in 10.7. This is an extract from the bug report generated when launching on 10.6.8: Process: paradiseperfectboatrescue…
Pascal Cuoq
  • 79,187
  • 7
  • 161
  • 281