diff options
| author | Alexander Pickering <alexandermpickering@gmail.com> | 2016-05-09 17:34:36 -0400 |
|---|---|---|
| committer | Alexander Pickering <alexandermpickering@gmail.com> | 2016-05-09 17:34:36 -0400 |
| commit | bf7a6d30bf9243541b9769669ca4f5a07d362c3e (patch) | |
| tree | 5d7fcf8d85a5604f0f2892d260e8f1b31b6ca4fc /ws2a/showbug.c | |
| parent | d6c9220a11af0b717aba5a46e542b3aaa3e2014e (diff) | |
| download | webpage-bf7a6d30bf9243541b9769669ca4f5a07d362c3e.tar.gz webpage-bf7a6d30bf9243541b9769669ca4f5a07d362c3e.tar.bz2 webpage-bf7a6d30bf9243541b9769669ca4f5a07d362c3e.zip | |
testing to see what is causeing extra character
Diffstat (limited to 'ws2a/showbug.c')
| -rw-r--r-- | ws2a/showbug.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/ws2a/showbug.c b/ws2a/showbug.c index a92776e..2e57076 100644 --- a/ws2a/showbug.c +++ b/ws2a/showbug.c @@ -16,7 +16,10 @@ int main(){ return 1; } long long last = 0; - fscanf(lastfilenum,"%lld",&last); + if(fscanf(lastfilenum,"%lld",&last) < 1){ + printf("Error finding file id"); + return 1; + } fclose(lastfilenum); long long thisid = 0; sscanf(data,"id=%lld",&thisid); @@ -39,4 +42,5 @@ int main(){ putchar(fgetc(bugfile)); } fclose(bugfile); + return 0; } |
