bzr branch
/loggerhead/hardening/master
| Line | Revision | Contents |
| 1 | 45 | /* Copyright 2007-2009 Kees Cook <kees@outflux.net>, License: GPLv3 */ |
| 2 | 18 | #include <stdio.h> |
| 3 | #include <stdlib.h> |
|
| 4 | #include <unistd.h> |
|
| 5 | #include <stdint.h> |
|
| 6 | #include <string.h> |
|
| 7 | #include <stdint.h> |
|
| 8 | #include <inttypes.h> |
|
| 9 | ||
| 10 | int main(int argc, char * argv[]) |
|
| 11 | { |
|
| 12 | 19 | char buf[16]; |
| 13 | 18 | |
| 14 | if (argc>1) { |
|
| 15 | strcpy(buf,argv[1]); |
|
| 16 | printf("Your first argument was: "); |
|
| 17 | printf(buf); |
|
| 18 | printf("\n"); |
|
| 19 | } |
|
| 20 | else { |
|
| 21 | fprintf(stderr,"Usage: %s ARG\n",argv[0]); |
|
| 22 | exit(1); |
|
| 23 | } |
|
| 24 | ||
| 25 | return 0; |
|
| 26 | } |
Loggerhead 1.17 is a web-based interface for Bazaar branches