Advertisement
nastiia_firefly

Untitled

Nov 18th, 2014
144
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.28 KB | None | 0 0
  1.    void SetStr(char *ob)
  2.         {
  3.             str=strdup(ob);
  4.             strcpy(str+1,ob);
  5.             str[0]=strlen(ob);
  6.         }
  7.  
  8.    void SetStr(char *ob)
  9.         {
  10.             str=strdup(ob);
  11.             strcpy(str+1,ob);
  12.             str[0]=strlen(ob)-1;
  13.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement