
newStyled C (nSc)
Source (link to git-repo or to original if based on someone elses unmodified work): Add the source-code for this project on opencode.net
A C header file for your compiler. All you have to do to install is stick it wherever your compiler gets header files (usually /usr/include). Includes delay() function, vi the file for all functions.
14 years ago
0.1 - 2 functions
14 years ago
0.1 - 2 functions
jel
14 years ago
delay(time)
meltdown(n1, n2, n3, n4, n5)
There is no API documentation, and the delay function (at least) is broken.
To the author: this is a good thing to practice with, but it's not much use to others. Your delay() function will not work at the correct speed on any computer that is faster or slower than yours. Also, it is highly inefficient.
The reason for both of these issues is that you can't just run a loop for a long time as a way of waiting on a multitasking computer, or a computer that's capabilities aren't fully known. Instead, you have to use higher-level computer parts, like the built in clock and alarm system, to wait for a specified period of time. Look up the sleep() function, which does what you want delay() to do.
Report
lavacano201014
14 years ago
Report
dgrat
14 years ago
plz. post only a tool if they fulfill a specific task. an easy way is to write a template list-class with is dynamic. for example.
Report
lavacano201014
14 years ago
Report