Code:
void tachchuoi(char *fullname, char **name)
{
    int n=strlen(fullname), i=n-1;
    while (fullname[i]!=' ') i--;
    *name = &fullname[i+1];
    fullname[i] = '\0';
}
void inxau(char *s){
union REGS r;
int i=0;
while(s[i]!= '\0'){
r.h.ah=2;
r.h.dl=*(s+i);
int86(0x21,&r,&r);
i++;
}