home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / TOUCH_U.ZIP / TOUCH.DOC < prev    next >
Text File  |  1990-05-04  |  2KB  |  62 lines

  1. TOUCH.C
  2. =======
  3.  
  4. Christopher Laforet: Original version
  5. Reed Shilts (v 3.0): match Berkeley unix syntax, added long filename support
  6.  
  7.  
  8. Note from Christopher Laforet:
  9.  
  10. This program was created by me as a demonstration (albeit useful) for my C
  11. students at Elon College.  The course is sponsered by the Burlington User's
  12. Group, not by the college itself.
  13.  
  14. Anyway, I trust that the code presented would be of some help and should
  15. demonstrate how simple it is to design useful utilities in C!  This project
  16. probably took 45 minutes to write and debug.
  17.  
  18. I added a few features that are not found in most implementations of TOUCH.
  19. The first of these is a verbose flag and the second of these is a confirmation
  20. flag.  I believe that these should come in useful to many users at one time or
  21. another.
  22.  
  23. You are free to modify this code at will, but I ask that if you add yours to
  24. this for re-distribution that you would include the original with it.
  25.  
  26. Last, but not least, a disclaimer.  I am not responsible for the conduct of
  27. this program.  In other words, use at your own risk, especially if you change
  28. the source in some way!
  29.  
  30. In version 1.xx, I prepared the code for Turbo C 2.0.  This version has been
  31. created under MSC 5.1 and is a bound application to work both under OS/2 and
  32. DOS.
  33.  
  34.  
  35. ===========================================
  36. Note from Reed Shilts:
  37.     This is the best TOUCH I've seen in the DOS/OS2 world (accolades
  38.     to Christopher Laforet), but the syntax didn't match UNIX and
  39.     it lacked long filename support.
  40.     Both changes were trivial and are quite apparent by viewing this
  41.     and the original code.  The makefile was changed only because the
  42.     executable must be marked to show it supports long filenames.
  43.     
  44.     Note: this doesn't handle touching files in other directorys!! 
  45.         I wanted to copy some code out of the OS/2 ver 1.2 SDK
  46.         sample program 'FDIR.C' which has a function similar
  47.         to the DOS style '_splitpath' and '_makepath', but that 
  48.         would be mixing copyrighted code with public domain code.
  49.         You can mix the code for your own use, but I'm not putting
  50.         that sort of hybrid on any BBS.
  51.  
  52.     This version (3.0) was tested with both OS/1 1.2 and DOS 3.31.    
  53.     Reed Shilts -- CIS 72500,1647
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.