Strings in C
Just a null-terminated array of characters. That sucks, as it’s extremely easy to shoot yourself in the foot. strlcpy
and friends won’t save you. In general, you have to know the length of your string before doing anything with it.
Just a null-terminated array of characters. That sucks, as it’s extremely easy to shoot yourself in the foot. strlcpy
and friends won’t save you. In general, you have to know the length of your string before doing anything with it.