Created
April 25, 2014 17:51
-
-
Save mattpresson/11297818 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
matt@ults:~/c$ ll | |
total 12 | |
drwxrwxr-x 2 matt matt 4096 Apr 25 12:49 ./ | |
drwxr-xr-x 23 matt matt 4096 Apr 25 12:49 ../ | |
-rw-rw-r-- 1 matt matt 1828 Apr 25 12:45 elementCount.c | |
matt@ults:~/c$ gcc elementCount.c -o elementCount | |
matt@ults:~/c$ ll | |
total 24 | |
drwxrwxr-x 2 matt matt 4096 Apr 25 12:49 ./ | |
drwxr-xr-x 23 matt matt 4096 Apr 25 12:49 ../ | |
-rwxrwxr-x 1 matt matt 8848 Apr 25 12:49 elementCount* | |
-rw-rw-r-- 1 matt matt 1828 Apr 25 12:45 elementCount.c | |
matt@ults:~/c$ ./elementCount | |
str: AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA length: 40 sizeof: 41 | |
w_str: BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB length: 50 sizeof: 51 | |
buffer: `�mf� length: 6 sizeof: 32 | |
w_buffer: length: 0 sizeof: 32 | |
buffer: B length: 1 sizeof: 32 | |
w_buffer: BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB length: 50 sizeof: 32 | |
*** stack smashing detected ***: ./elementCount terminated | |
Aborted (core dumped) | |
matt@ults:~/c$ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment