//to use 'getdate' & 'delay' we include
#include <dos.h>
As we know there is no dos.h header file in UNIX, am working in Xcode
is there any alternate to do this???
unistd ... make it a last resort, its difficult to port off unix systems and is often stuffed into code that can get along without it. Like dos.h and windows.h and so on, it marries your code to an OS and other users have to find a workaround.