Hi all , hope you're well
My code so far
Code:
#include <stdio.h>
#include <ctype.h>
#include <string.h>
void uplostr(char *s1, char *s2)
int main()
{
char string1[] = "My NaMe Is SJaD";
char string2[] = "My NaMe Is SJaD";
printf(" Uppercase : %s \n Lowercase : %s\n\n",uplostr(string1),uplostr(string2));
return 0;
}
void uplostr(char *s1, char *s2)
{
char *p;
char *p2;
for (*p=s1; *p != '\0'; p++)
{
*p=toupper(*p);
}
for (*p2=s2; *p2 != '\0'; p2++)
{
*p2 = tolower(*p2);
}
return;
}
Code:
I keep getting these 3 errors and I have now idea how to deal with them :
error expected '=', ',', ';', 'asm' or '__attribute__' before '{' token|.
error expected '=', ',', ';', 'asm' or '__attribute__' before '{' token|.
error expected '{' at end of input|.
any hits would be appreciated :)