Mercurial > jwe > octave
comparison src/sysdep.cc @ 1113:32a5dfd92f0a
[project @ 1995-02-15 04:29:49 by jwe]
author | jwe |
---|---|
date | Wed, 15 Feb 1995 04:29:49 +0000 |
parents | 2a36b558ab55 |
children | abd78a3dd93d |
comparison
equal
deleted
inserted
replaced
1112:b326ac82dc9f | 1113:32a5dfd92f0a |
---|---|
364 } | 364 } |
365 | 365 |
366 char * | 366 char * |
367 octave_getcwd (const char *buf, int len) | 367 octave_getcwd (const char *buf, int len) |
368 { | 368 { |
369 #if defined (EMX) | 369 #if defined (__EMX__) |
370 return _getcwd2 (buf, len); | 370 return _getcwd2 (buf, len); |
371 #else | 371 #else |
372 return getcwd (buf, len); | 372 return getcwd (buf, len); |
373 #endif | 373 #endif |
374 } | 374 } |
375 | 375 |
376 int | 376 int |
377 octave_chdir (const char *path) | 377 octave_chdir (const char *path) |
378 { | 378 { |
379 #if defined (EMX) | 379 #if defined (__EMX__) |
380 int retval = -1; | 380 int retval = -1; |
381 | 381 |
382 if (strlen (path) == 2 && path[1] == ':') | 382 if (strlen (path) == 2 && path[1] == ':') |
383 { | 383 { |
384 char *upper_case_dir_name = strupr (path); | 384 char *upper_case_dir_name = strupr (path); |