From: Eric B. <ebo...@us...> - 2001-12-17 11:14:51
|
Update of /cvsroot/alleg/allegro/src/unix In directory usw-pr-cvs1:/tmp/cvs-serv3999/src/unix Added Files: ufile.c Log Message: Moved ufile.c to src/unix/ --- NEW FILE: ufile.c --- /* ______ ___ ___ * /\ _ \ /\_ \ /\_ \ * \ \ \L\ \\//\ \ \//\ \ __ __ _ __ ___ * \ \ __ \ \ \ \ \ \ \ /'__`\ /'_ `\/\`'__\/ __`\ * \ \ \/\ \ \_\ \_ \_\ \_/\ __//\ \L\ \ \ \//\ \L\ \ * \ \_\ \_\/\____\/\____\ \____\ \____ \ \_\\ \____/ * \/_/\/_/\/____/\/____/\/____/\/___L\ \/_/ \/___/ * /\____/ * \_/__/ * * Helper routines to make file.c work on Unix (POSIX) platforms. * * By Michael Bukin. * * See readme.txt for copyright information. */ #include <stdio.h> [...442 lines suppressed...] /* to avoid leaking memory */ ff_match(NULL, NULL); } } /* _al_getdcwd: * Returns the current directory on the specified drive. */ void _al_getdcwd(int drive, char *buf, int size) { char tmp[1024]; if (getcwd(tmp, sizeof(tmp))) do_uconvert(tmp, U_ASCII, buf, U_CURRENT, size); else usetc(buf, 0); } |