diff options
Diffstat (limited to 'rat2canon.c')
-rw-r--r-- | rat2canon.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/rat2canon.c b/rat2canon.c index 872a286..2a1e0f8 100644 --- a/rat2canon.c +++ b/rat2canon.c @@ -25,7 +25,7 @@ typedef lrs_mp integer_t; #define MP_DIGITS 1000L -#include "rat2float.ds" +#include "rat2canon.ds" static int *rows=NULL; static long int m,n; @@ -65,7 +65,8 @@ int main(argc,argv) while ( fgets(buf,BUFSIZ,stdin) !=NULL ) { fputs(buf,stdout); - if (strncmp(buf,"begin",5)==0) break; + for (cursor=buf; isblank(*cursor); cursor++); + if (strncmp(cursor,"begin",5)==0) break; } if (fgets(buf,BUFSIZ,stdin)==NULL) { |