added function to replace a space char in a name with |

This commit is contained in:
Calson Noah 2017-05-22 08:58:04 +01:00
parent 65ee79f8c5
commit 1337c8435e

View File

@ -793,3 +793,19 @@ void accounts_create(void)
} }
} }
/*Searching the name for space to replace with |*/
void name_modify(char *name)
{
u=0;
while(u<=15)
{
if(name[u]==' ')//searching for ' ' in the name string
{
name[u]='|';//and replacing with |
break;
}
u++;
}
strcat(name,".");
}