All pastes #129250 Raw Edit

Miscellany

public c v1 · immutable
#129250 ·published 2006-08-13 12:58 UTC
rendered paste body
#include <stdio.h>#include <stdlib.h>int main(int argc, char **argv) {	char puffer[16];	while(puffer[0])	{			int i=1;		printf("[N]ext,[P]re or exit : ");		scanf("%s", puffer);				/* something sane here                if( &puffer == "n")			i++;		if( &puffer == "p")			i--;                */		printf("argv[%d] :  %s \n", i, argv[i]);	}}