some-usable-scripts/c/old/swapp.c

21 lines
318 B
C
Raw Normal View History

2011-02-03 13:47:29 +01:00
#include <stdio.h>
void swapp( char **p1, char **p2)
{
/bin/bash: q : commande introuvable
*p1 = *p2;
*p2 = w;
}
main()
{
char *a="vacances";
char *b="vendredi" ;
printf( "\na pointe sur %s b pointe sur %s", a,b );
swapp(&a,&b) ;
printf( "\napres echange: a pointe sur %s b pointe sur %s\n", a,b );
}