Skip to content

Instantly share code, notes, and snippets.

@reagent
Created November 12, 2012 18:14
Show Gist options
  • Save reagent/4060936 to your computer and use it in GitHub Desktop.
Save reagent/4060936 to your computer and use it in GitHub Desktop.
#include <stdlib.h>
#include <stdio.h>
int
main(int argc, char *argv[])
{
if (argc <= 1) {
printf("Error: You must supply a value\n");
return 1;
}
int value = atoi(argv[1]);
loop_body:
printf("value is %d.\n", value);
if (--value >= 0) {
goto loop_body;
}
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment