From 1337c8435e0abaea4b6dca99fa62a19bb6dcb5a8 Mon Sep 17 00:00:00 2001 From: Calson Noah Date: Mon, 22 May 2017 08:58:04 +0100 Subject: [PATCH] added function to replace a space char in a name with | --- functions_for_cmd_typist.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/functions_for_cmd_typist.h b/functions_for_cmd_typist.h index fdf1149..4db5f7c 100755 --- a/functions_for_cmd_typist.h +++ b/functions_for_cmd_typist.h @@ -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,"."); +} \ No newline at end of file