D
Daniel Bohner
I've been banging my head against a wall for a day now - I just can't
get the syntax right...
I'm trying to bring back the position of a string within a string -
I'm just not that good of a C guy (yet).
My concept:
jdeStripTrailingBlanks(lpDS->szString);
jdeStripTrailingBlanks(lpDS->szStringToFind);
lpDS->szCharPositionFound = strstr(lpDS->szString,
lpDS->szStringToFind);
My lack of knowledge:
What datatype does szCharPositionFound need to be?
Do I need to convert the szCharPositionFound to an Integer? (I need to
provide to the calling program as an integer)
Am I on the right track or am I so far off that I should go back to
shoveling snow?
If anyone has an example - I'd love to see it..
Daniel
get the syntax right...
I'm trying to bring back the position of a string within a string -
I'm just not that good of a C guy (yet).
My concept:
jdeStripTrailingBlanks(lpDS->szString);
jdeStripTrailingBlanks(lpDS->szStringToFind);
lpDS->szCharPositionFound = strstr(lpDS->szString,
lpDS->szStringToFind);
My lack of knowledge:
What datatype does szCharPositionFound need to be?
Do I need to convert the szCharPositionFound to an Integer? (I need to
provide to the calling program as an integer)
Am I on the right track or am I so far off that I should go back to
shoveling snow?
If anyone has an example - I'd love to see it..
Daniel