s3d_mainloop(3) debian man page | unix.com

Man Page: s3d_mainloop

Operating Environment: debian

Section: 3

S3D_MAINLOOP(3) 						    s3d Manual							   S3D_MAINLOOP(3)

NAME
s3d_mainloop - set mainloop of program
SYNOPSIS
#include <s3d.h> int s3d_mainloop(void(*)(void) f);
DESCRIPTION
Takes a function as argument. It will loop this function until a quit-event is received. You can pass NULL if you have no function to be looped, but its better to sleep some time if you have nothing to do anyway to save cpu-time. void mainloop(void) { usleep(1000); // sleep 1 ms in every cycle } ... s3d_mainloop(mainloop());
AUTHOR
Simon Wunderlich Author of s3d s3d S3D_MAINLOOP(3)
Related Man Pages
usleep(3c) - opensolaris
sleep(3) - mojave
gnatpython-mainloop(1) - debian
sleep(3ucb) - sunos
event::rpc::loop(3pm) - debian
Similar Topics in the Unix Linux Community
awk or sed - Convert 2 lines to 1 line
Find columns in a file based on header and print to new file
How to copy a column of multiple files and paste into new excel file (next to column)?
My first PERL incarnation... Audio Oscillograph