print longs with %ld

This commit is contained in:
ceriel 1988-07-07 14:19:16 +00:00
parent 3048d94603
commit beb142ed98
3 changed files with 6 additions and 6 deletions

View file

@ -6,9 +6,9 @@ s/FN/main/
/ISTART/c\
long x=100234 , y= -301 ;
/[XYZS]/s/.*/& ; printf("%s#","&"@) ;/
/Z1/s/#/ %D&/
/Z1/s/#/ %ld&/
/Z1/s/@/, Z1&/
/Z2/s/#/ %D&/
/Z2/s/#/ %ld&/
/Z2/s/@/, Z2&/
/Z1/s/^/Z1 = 10 ; /
/Z2/s/^/Z2 = 0100 ; /

View file

@ -6,9 +6,9 @@ s/FN/main/
/ISTART/c\
long x=100234 , y= -301 , z= 0 ;
/[XYZS]/s/.*/& ; printf("%s#","&"@) ;/
/Z1/s/#/ %D&/
/Z1/s/#/ %ld&/
/Z1/s/@/, Z1&/
/Z2/s/#/ %D&/
/Z2/s/#/ %ld&/
/Z2/s/@/, Z2&/
/Z1/s/^/Z1 = 10 ; /
/Z2/s/^/Z2 = 0100 ; /

View file

@ -6,9 +6,9 @@ s/FN/main/
/LSTART/c\
long x=100234 , y= -301 ;
/[XYZS]/s/.*/& ; printf("%s#","&"@) ;/
/Z1/s/#/ %D&/
/Z1/s/#/ %ld&/
/Z1/s/@/, Z1&/
/Z2/s/#/ %D&/
/Z2/s/#/ %ld&/
/Z2/s/@/, Z2&/
/Z1/s/^/Z1 = 10 ; /
/Z2/s/^/Z2 = 0100 ; /