22.10.2016, 17:29
Only use as much space as needed. Say your string is the following: "Hello". This string has 5 characters, so use an array size of 5 + 1. The added 1 is needed for the null-terminator.
Don't use 256 or any other random number. The input is limited to 128 + 1 characters anyway. The output to 144 + 1.
Don't use 256 or any other random number. The input is limited to 128 + 1 characters anyway. The output to 144 + 1.