I realize that kprint takes a pointer as a parameter. I don't understand how it loops through each character when you do something like kprint("HELLO WORLD"); Can you really just increment *s to get to the next char like:

s++;
char c = *s;

hi
it is so simple

see the code below. I am not whether the orginal code is like this. But may be it is similier to the following code.

kprint(char * s){
    char *str=s; 
    while(*str!='\0'){
         putc(*str);
         str++; 
    }
}
This question has already been answered. Start a new discussion instead.