Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int size = GlobalSize(var);
- int len = strlen_s(data, size);
- char *result = malloc(len+1);
- memcpy(result, data, len);
- result[len] = '\0';
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement