Advertisement
Mysoft

Untitled

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