Remove last character from string
First thing that came in my mind was:
PHP Code:
Any good way to solve this? |
Re: Remove last character from string
szBuffer[len - 1] = 0;
|
Re: Remove last character from string
You may also see EOS used in code, which is the same as using 0 and represents 'End Of String'. The goal is to set the desired array position as null, which signifies the end of null-terminated strings.
szBuffer[len - 1] = EOS; |
| All times are GMT -4. The time now is 15:39. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.