Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- bool ReadString(char*buf, unsigned int buflen)
- {
- if (IsOverflowed())
- return false;
- if (strlen(buffer + curbyte) > buflen)
- return false;
- strcpy(buf, buffer+curbyte);
- curbyte += strlen(buffer+curbyte)+1;
- if (curbyte > size_of_buffer)
- curbyte = size_of_buffer;
- return true;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement