M
mdh
Hi Group,
This is part of a program to convert Upper to lower case:
mstring[]=SDJDASjdsaldjSFDJDF;
printf ( " The lower case equivalents of this mixed string %s is %s",
mstring, atolc(mstring));
/* atolc is a function which when passed the array, replaces all uppper
case letters with lower case*/
What I am getting is:
sdjdasjdsaldjsfdjdf sdjdasjdsaldjsfdjdf
but I expected to get:
SDJDASjdsaldjSFDJDF sdjdasjdsaldjsfdjdf
What I would like to know is this.
Does the above printf function not intially print "SDJDASjdsaldjSFDJDF"
then later, after the string is passed to 'atolc" print the string
"sdjdasjdsaldjsfdjdf". The answer is obviously not, but I would
appreciate it if someone could explain why not.
thanks in advance.
This is part of a program to convert Upper to lower case:
mstring[]=SDJDASjdsaldjSFDJDF;
printf ( " The lower case equivalents of this mixed string %s is %s",
mstring, atolc(mstring));
/* atolc is a function which when passed the array, replaces all uppper
case letters with lower case*/
What I am getting is:
sdjdasjdsaldjsfdjdf sdjdasjdsaldjsfdjdf
but I expected to get:
SDJDASjdsaldjSFDJDF sdjdasjdsaldjsfdjdf
What I would like to know is this.
Does the above printf function not intially print "SDJDASjdsaldjSFDJDF"
then later, after the string is passed to 'atolc" print the string
"sdjdasjdsaldjsfdjdf". The answer is obviously not, but I would
appreciate it if someone could explain why not.
thanks in advance.