Advertisement
Guest User

Untitled

a guest
Dec 9th, 2019
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <string.h>
  3.  
  4. void foo(const char* input)
  5. {
  6. char buf[8] = "hello123";
  7. strcpy(buf, input);
  8. }
  9.  
  10.  
  11. void bar(void)
  12. {
  13. printf("In bar()");
  14. }
  15.  
  16.  
  17. int main(int argc, char* argv[])
  18. {
  19. foo("12345678901234567890");
  20.  
  21. return 0;
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement