On 29 Dec 2005 19:51:45 -0800, in comp.lang.c , "Harsh_forC"
<sr***************@gmail.com> wrote:
hello folks,
here i m inserting d very simple code tat im trying to execute..
but still gettin d same error msg,.." Not enuf memory"
I very much doubt your computer printed that message.
(top tip: in CLC do not use abbreviations of words, this is not a
mobile phone / IM).
As for your code:
a) main returns an int, not void. Returning anything other than an int
is not well defined and may not work.
b) the return value of system is implementation defined, you can't
check it like that.
c) you may not be able to execute 'time' like that - eg on MSDOS &
Windows its a builtin shell command so you may need to invoke the
shell first. For more info, ask in a Windows programming group as the
precise details of that are offtopic here.
Mark McIntyre
--
----== Posted via Newsfeeds.Com - Unlimited-Unrestricted-Secure Usenet News==----
http://www.newsfeeds.com The #1 Newsgroup Service in the World! 120,000+ Newsgroups
----= East and West-Coast Server Farms - Total Privacy via Encryption =----