From 7a583e3a287eb468e82e6509b467b6701e50dade Mon Sep 17 00:00:00 2001 From: bremner Date: Thu, 1 Jun 2006 18:56:34 +0000 Subject: git-svn-id: file:///export/data/bremner/svn/trunk/inetools@5359 09fa754a-f411-0410-976a-da6bfa213b30 --- rat2canon.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'rat2canon.c') 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) { -- cgit v1.2.3