Segmentation fault (core dumped)
Can someone please explain what that error message means? I'M tryin to use strcat()
to add "0" to the left end of char *argv[1]
I want it to do this only when the lenth of argv[1]
can not evenly be divided by 3. So if I get 123 all is well, but if argv[1]
is 1234 I need to append a "0" to the left. When I run the program rather than append the "0" it's giving me that error, and it's only doing that when the number is not a multiple of 3. Thanks.