I have records where I have to remove spaces. My preference is to have variable length strings with no spaces before or after field information. The field separaters are "|"
Example:
| John | Smith |
| Ann Marie | Jones |
I will probably read each field into string variables with strtok or strextract. I want to remove leading and trailing spaces.
Output would look like this:
|John|Smith|
|Ann Marie|Jones|
The important this is to remove space between the verticle bars and any printable character.
Thank you
Example:
| John | Smith |
| Ann Marie | Jones |
I will probably read each field into string variables with strtok or strextract. I want to remove leading and trailing spaces.
Output would look like this:
|John|Smith|
|Ann Marie|Jones|
The important this is to remove space between the verticle bars and any printable character.
Thank you