Näytä yksittäinen viesti
  #1  
Vanha 15.11.2003, 04:45
Guest
 
Viestit: n/a
Perusasetus

MS-DOSsin sorsasta löytynyt hauska kommentti


Microsoftin MS-DOS käyttöjärjestelmän version 6.0 lähdekoodista löytyy hauska kommentti:

/* BOOL fnEditPath(char *ExistingPath);
*
* Function will add the szSetupPath to the users path statement in the
* autoexec.bat file. The szSetupPath will be the first location in the
* path statement. The path can be in about a million fucked up forms
* depending on the level of stupidity in the user. Here are a few to
* think about. DOS will accept any of these.
*
* PATH=C:\foo;C:\foobar;...
* SET PATH=C:\foo;C:\foobar;...
* PATH C:\foo;C:\foobar;...
* PATH =C:\foo;C:\foobar;...
* PATH= C:\foo;C:\foobar;...
* PATH = C:\foo;C:\foobar;...
*
* ENTRY: ExistingPath - near buffer containing the path statement to be
* edited.
*
* EXIT: BOOL, TRUE = Path succesfully modified.
* FALSE = Path was too long after modification (path >= 128).
*
*/

Note! This message was posted anonymously!