System Dependencies

19. System Dependencies

19.1How can I read a single character from the keyboard withoutwaiting forthe RETURN key?

19.2How can I find outhow many characters areavailable for reading,or do a non-blocking read?

19.3How can I display apercentage-done indicationthat updates itself in place,or show one of those``twirling baton''progress indicators?

19.4How can I clear the screen,orprint things in inverse video,ormove the cursor?

19.5How do I read the arrow keys?What about function keys?

19.6How do I read the mouse?

19.7How can I do serial (``comm'') port I/O?

19.8How can I direct output to the printer?

19.9How do I send escape sequencesto control a terminal or other device?

19.10How can I do graphics?

19.11How can I check whether a file exists?

19.12How can I find out the size of a file,prior to reading it in?

19.13How can a file be shortened in-place without completely clearingor rewriting it?

19.14How can I insert or delete a linein the middle of a file?

19.15How can I recover the file name given an openfile descriptor?

19.16How can I delete a file?

19.17What's wrong with thecall"fopen("c:\newdir\file.dat", "r")"?

19.18How can I increase the allowable number of simultaneously open files?

19.20How can I read a directory in a C program?

19.22How can I find out how much memory is available?

19.23How can I allocate arrays or structures bigger than 64K?

19.24What does the error message``DGROUPexceeds 64K''mean?

19.25How can I access memorylocated at a certain address?

19.27How can I invokeanother programfrom within a C program?

19.30How can I invokeanother programandtrapits output?

19.31How can my program discover the complete pathname to the executablefromwhich it was invoked?

19.32How can I automatically locatea program'sconfiguration filesin the same directory astheexecutable?

19.33How can a process change an environment variable in its caller?

19.36How can I read in an object file and jump to routines in it?

19.37How can I implement a delay,or time a user's response,with sub-second resolution?

19.38How can I trap or ignorekeyboard interruptslikecontrol-C?

19.39How can Ihandlefloating-point exceptions gracefully?

19.40How do I...Use sockets?Do networking?Write client/server applications?

19.40bHow do I use BIOS calls?How can I writeISR's?How can I create TSR's?

19.41But I can't use all these nonstandard, system-dependent functions,because my program has to be ANSI compatible!


top