Esempio:

Passi una stringa a una funzione.
codice:
int strlen (char *s) {
    int i;
    for (i=0; str[i] != '\0'; i++);
    return(i);
}
oppure
codice:
void strprint (char *s) {
    while (*s != '\0') {
        printf("%c", *s);
        s++;
    }
}