do nothing loop

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This may be the simplest question posted on here, but....I want to
basically do this

int p=0;
while(!p);

so have the code do nothing until the variable p is equal to 1.  Is a
while loop the best or is there a nicer method?

Thanks!

Dan

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
IRC Channel:   irc.openprojects.net / #kernelnewbies
Web Page:      http://www.kernelnewbies.org/



[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux