home *** CD-ROM | disk | FTP | other *** search
/ Shareware Overload / ShartewareOverload.cdr / progm / elem-c.zip / LYNN.DOC < prev    next >
Text File  |  1985-05-18  |  4KB  |  85 lines

  1. Y HELPFUL THEN TAKE YOU SPOUSE OUT TO
  2. DINNER BECAUSE (HE|SHE) IS PROBABLY AS SICK OF YOUR PC AS
  3. MINE IS AND GIVE MY BBS A CALL SOMETIME AND UPLOAD A FILE
  4. TO ME AND THE PROGRAMMING GODS WILL  FOREVER  SMILE  UPON
  5. YOU.
  6.  
  7.                 LYNN LONG
  8.                 TULSA IBBS C-SIG
  9.                 918-749-0718
  10.                 24 HOURS
  11.                 SUBSCRIPTION BBS
  12.  
  13.  
  14. cls()
  15.  
  16. The cls() function clears the screen.  It  is  called out
  17. out of lattice c as:
  18.  
  19.                 cls();
  20.  
  21. ----------------------------------------------------------
  22.  
  23. locate(row,col)
  24. int row,col;
  25.  
  26. This function positions the cursor at the location specif-
  27. ied by row and column.  Suppose that you wanted the cursor
  28. to be positioned at row 10 and column 10.  The  call  from
  29. Lattice would be:
  30.  
  31.                 locate(10,10);
  32.                                                                                                                                                                                         
  33. ----------------------------------------------------------
  34.  
  35. dosdate(array)
  36. char array[];
  37.  
  38. This function returns the  system  date into  a  character
  39. array in the form mm-dd-yyyy.  You must declare  an  array
  40. of 11 character in length  and  pass the  address  to  the
  41. function.  The call from Lattice is as follows.
  42.  
  43.  
  44.                 char date[11];
  45.                 dosdate(date);
  46.  
  47.  
  48. ----------------------------------------------------------
  49.  
  50.  
  51. dostime(time)
  52. char time[];
  53.  
  54. This function returns the  system  time into  a  character
  55. array in the form of  hh:mm:ss:hh.  You  must  declare  an
  56. array of 12 characters and pass that address to the funct-
  57. ion.  The call from Lattice is:
  58.  
  59.  
  60.                 char time[12];
  61.                 dostime(time);
  62.  
  63.  
  64. ----------------------------------------------------------
  65.  
  66.  
  67. prtscn()
  68.  
  69.  
  70. This function prints the screen to a printer under program
  71. control the same as pressing the shift-PrtSc  keys  do.  I
  72. have found it useful to put into programs at the point   I
  73. detect an error condition and I am not at the location. It
  74. sometimes helps to see what the user was doing at the time
  75. the error occured.  It is called from Lattice C as:
  76.  
  77.                 prtscn();
  78.  
  79. ----------------------------------------------------------
  80.  
  81.  
  82.  
  83.  
  84. I WILL ADD MOÇ    dostime{ûPROGDATAPGROUPDGROUP<ÿ(─pÿHÄÇεÜ ^Ü \ÉDOSTIMECî_BASE∞îXCOVFαî    INTDOSôî    STCU_Déî    STRCPYî    STRCATôá╚Uâ∞r;&wΘï∞╞F,ìFPPΦïσèF0Σ╗SPìFPΦïσèF0Σ╗SPìFPΦïσèF0Σ╗SPìFPΦïσèF0Σ╗SPìF PΦïσìFP vΦïσ╕P vΦïσìFP vΦïσ╕P vΦïσìFP vΦïσ╕P vΦïσìF P vΦïσâ─]├÷£─&j£ä&ú£ä&ô£ä.&~£äA&k£äT&X£äg&E£äs&7£─x
  85. £ä&)£äï&£─É≥£äù&£äú&£─¿┌£ä»&∙£ä╗&φá:ètÇprtscn╪ûPROGDATAPGROUPDGROUP<ÿ($ÿHÄÇεÜ ^Ü \ÉPRTSCNÇî_BASE∞îXCOVFαîINT86á(Uâ∞r;&wΘï∞ìFPP╕PΦïσâ─]├q£─&j£ä&ú£ä&ôèt±²