Loop for 7 minutes in c using while and sleep function [on hold]

Multi tool use
Want to loop to some time using while and sleep but sleep function never returns 1. What to do ?
To loop to some time using
while(sleep(5)) {
Code
}
Language c
suspend c
New contributor
Oussama Pas Plus is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
put on hold as off-topic by Sergiy Kolodyazhnyy, steeldriver, fkraiem, waltinator, karel 32 mins ago
This question appears to be off-topic. The users who voted to close gave this specific reason:
- "This is not about Ubuntu. Questions about other Linux distributions can be asked on Unix & Linux, those about Windows on Super User, those about Apple products on Ask Different and generic programming questions on Stack Overflow." – Sergiy Kolodyazhnyy, steeldriver, fkraiem, waltinator, karel
If this question can be reworded to fit the rules in the help center, please edit the question.
add a comment |
Want to loop to some time using while and sleep but sleep function never returns 1. What to do ?
To loop to some time using
while(sleep(5)) {
Code
}
Language c
suspend c
New contributor
Oussama Pas Plus is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
put on hold as off-topic by Sergiy Kolodyazhnyy, steeldriver, fkraiem, waltinator, karel 32 mins ago
This question appears to be off-topic. The users who voted to close gave this specific reason:
- "This is not about Ubuntu. Questions about other Linux distributions can be asked on Unix & Linux, those about Windows on Super User, those about Apple products on Ask Different and generic programming questions on Stack Overflow." – Sergiy Kolodyazhnyy, steeldriver, fkraiem, waltinator, karel
If this question can be reworded to fit the rules in the help center, please edit the question.
add a comment |
Want to loop to some time using while and sleep but sleep function never returns 1. What to do ?
To loop to some time using
while(sleep(5)) {
Code
}
Language c
suspend c
New contributor
Oussama Pas Plus is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
Want to loop to some time using while and sleep but sleep function never returns 1. What to do ?
To loop to some time using
while(sleep(5)) {
Code
}
Language c
suspend c
suspend c
New contributor
Oussama Pas Plus is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
Oussama Pas Plus is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
edited 7 hours ago


Sergiy Kolodyazhnyy
72.3k9150316
72.3k9150316
New contributor
Oussama Pas Plus is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
asked 7 hours ago
Oussama Pas PlusOussama Pas Plus
11
11
New contributor
Oussama Pas Plus is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
Oussama Pas Plus is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
Oussama Pas Plus is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
put on hold as off-topic by Sergiy Kolodyazhnyy, steeldriver, fkraiem, waltinator, karel 32 mins ago
This question appears to be off-topic. The users who voted to close gave this specific reason:
- "This is not about Ubuntu. Questions about other Linux distributions can be asked on Unix & Linux, those about Windows on Super User, those about Apple products on Ask Different and generic programming questions on Stack Overflow." – Sergiy Kolodyazhnyy, steeldriver, fkraiem, waltinator, karel
If this question can be reworded to fit the rules in the help center, please edit the question.
put on hold as off-topic by Sergiy Kolodyazhnyy, steeldriver, fkraiem, waltinator, karel 32 mins ago
This question appears to be off-topic. The users who voted to close gave this specific reason:
- "This is not about Ubuntu. Questions about other Linux distributions can be asked on Unix & Linux, those about Windows on Super User, those about Apple products on Ask Different and generic programming questions on Stack Overflow." – Sergiy Kolodyazhnyy, steeldriver, fkraiem, waltinator, karel
If this question can be reworded to fit the rules in the help center, please edit the question.
add a comment |
add a comment |
0
active
oldest
votes
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
YHr2cnijgj3pwCuYP nvOHYBixlhd3szdS8FiSXfKH3a1YR9IOViVDF8LKRzlNbC7,0I4hJ