All pastes #10404 Raw Edit

C stuff

public text v1 · immutable
#10404 ·published 2005-04-27 09:05 UTC
rendered paste body
int main()
{
        char *result = boo();
        if(result)
        {
                printf("BOO: %s<-\n", result);
                free(result);
        }
        else
        {
                printf("Something went wrong\n");
        }
        return 0;
}

char *boo()
{
        char *line = (char*)malloc(1024);

        fgets(line, 1023, stdin);
        return line;
}