Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > C Moderated > Simple SLEEP ma...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 18 Topic 962 of 1145
Post > Topic >>

Simple SLEEP macro?

by gamename <namesagame-usenet@[EMAIL PROTECTED] > Jun 11, 2007 at 07:25 PM

Hi,

I just inherited a substantial number of source files with this in
them:
#ifdef _WIN32
    Sleep(2000);
#else
    sleep(2);
#endif

Being new to C, I'm trying to figure out if this can be consolidated
into a simple macro instead of peppering this all over the place.
Anyone have any examples?

TIA,
-T
-- 
comp.lang.c.moderated - moderation address: clcm@[EMAIL PROTECTED]
 -- you must
have an appropriate newsgroups line in your header for your mail to be
seen,
or the newsgroup name in square brackets in the subject line.  Sorry.
 




 18 Posts in Topic:
Simple SLEEP macro?
gamename <namesagame-u  2007-06-11 19:25:33 
Re: Simple SLEEP macro?
Barry Schwarz <schwarz  2007-06-16 19:12:39 
Re: Simple SLEEP macro?
"Douglas A. Gwyn&quo  2007-06-16 19:12:42 
Re: Simple SLEEP macro?
"Chris Thomasson&quo  2007-06-16 19:12:49 
Re: Simple SLEEP macro?
Friedrich Dominicus <j  2007-06-16 19:12:51 
Re: Simple SLEEP macro?
Thomas Richter <thor@[  2007-06-16 19:12:37 
Re: Simple SLEEP macro?
Cumaar <gkumaar@[EMAIL  2007-06-16 19:13:00 
Re: Simple SLEEP macro?
Petr Zemek <xzemek02@[  2007-06-16 19:13:03 
Re: Simple SLEEP macro?
Kenneth Brody <kenbrod  2007-06-16 19:13:05 
Re: Simple SLEEP macro?
WillerZ <newsreplies@[  2007-06-16 19:13:06 
Re: Simple SLEEP macro?
Matthias Buelow <mkb@[  2007-06-16 19:13:08 
Re: Simple SLEEP macro?
Bob Beaty <drbob@[EMAI  2007-06-16 19:13:16 
Re: Simple SLEEP macro?
Jonathan Leffler <jlef  2007-06-16 19:12:46 
Re: Simple SLEEP macro?
apm35@[EMAIL PROTECTED]   2007-06-16 19:12:53 
Re: Simple SLEEP macro?
tbs <Yodious@[EMAIL PR  2007-06-16 19:13:27 
Re: Simple SLEEP macro?
jgd@[EMAIL PROTECTED] (J  2007-06-16 19:13:31 
Re: Simple SLEEP macro?
Cumaar <gkumaar@[EMAIL  2007-06-16 19:13:33 
Re: Simple SLEEP macro?
Magnus Wibeck <magnus.  2007-06-16 19:14:20 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Thu Sep 4 23:46:36 CDT 2008.