All pastes #896184 Raw Edit

Something

public text v1 · immutable
·published 2008-02-08 13:01 UTC
rendered paste body
#include <stdio.h>
#include <string.h>
#include <stdlib.h>

void f(char *k) {
  strcpy(k,"lol");
}


int main () {
  char *lol = malloc(4*sizeof(char));
    strcpy(lol, "bla");
    printf (" i before call %s \n", lol);
  f(lol); 
    printf (" i after call %s \n", lol);
}