“strnset” is standard-c, (visual c++) and should work in objective-c.
But it doesn’t recognize it.
What library am I missing? I have tried: stdio.h and string.h… both don’t do it.
what would work in its place where I am given a char array and I want to create: n * characters to be placed in it?
example: _strnset(data, '8', 12); will yield -> data = "888888888888"
Use
memset()instead.strnsetis not part of the standard “C” library.What property does
strsethave overmemsetthat you are interested in?