added stdint.h for fixed width ints

This commit is contained in:
Krishna Vedala 2020-04-07 00:41:14 -04:00
parent 6a09ade47d
commit 860b1fd501
No known key found for this signature in database
GPG Key ID: BA19ACF8FC8792F7

View File

@ -1,5 +1,6 @@
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <stdint.h>
#include <string.h> /* for memmove */ #include <string.h> /* for memmove */
int main(int argc, char *argv[]) int main(int argc, char *argv[])
@ -48,7 +49,8 @@ int main(int argc, char* argv[])
{ {
num_bad_chars++; /* this is used to get the bad characters in the sequence of 13 characters */ num_bad_chars++; /* this is used to get the bad characters in the sequence of 13 characters */
continue; continue;
} else if (num_bad_chars > 0) }
else if (num_bad_chars > 0)
num_bad_chars--; num_bad_chars--;
num = ch - 0x30; /* convert character digit to number */ num = ch - 0x30; /* convert character digit to number */