All pastes #32476 Raw Edit

Unnamed

public text v1 · immutable
#32476 ·published 2005-12-05 05:44 UTC
rendered paste body
#include <stdio.h>
#include <string.h>

int main()
{
        char string[32];
        char *tmp;

        strcpy(string, "this is just a test");

        tmp = string;

        do {
                if ((tmp = strchr(tmp,' '))) {
                        *tmp = '!';
                        tmp++;
                }
        } while (tmp);

        printf("string: '%s'\n", string);

        return 1;
}