Path: utzoo!attcan!uunet!ncrlnk!ncrcae!hubcap!gatech!rutgers!bpa!cbmvax!vu-vlsi!dsinc!lgnp1!phile From: phile@lgnp1.LS.COM (Phil Eschallier) Newsgroups: comp.unix.microport Subject: Re: floating point under Microport Summary: test is a built in shell function Message-ID: <449@lgnp1.LS.COM> Date: 11 Dec 88 16:57:09 GMT References: <612@cimcor.mn.org> <711@wa3wbu.UUCP> Organization: Lagniappe Systems (Norristown, PA) Lines: 32 In article <711@wa3wbu.UUCP>, john@wa3wbu.UUCP (John Gayman) writes: > In article <612@cimcor.mn.org>, mike@cimcor.mn.org (Michael Grenier) writes: > > #include > > main() > > { > > float a; > > a=2.0; > > printf("%f\n",a); > > } > > Does this work on anyone's 286? > I'm not a C-guru so don't flame me but what is this code supposed to > do if it works properly ? I compiled this code two different ways on my > Sys V/AT 2.3U system. > 1. cc -o test test.c -lm > 2. cc -o test test.c > When I run test, it just returns the cursor. No error, no nothing. > Is this correct ? no this is not correct! you should note that "test" is a built in shell function so when you enter "test" at the shell prompt, that is what you are using. you may either use "./test" or name the little program just about anything else. -- phil eschallier sorry, but no fancy .signature