/***********************************************************************
* *
* This software is part of the ast package *
* Copyright (c) 1985-2011 AT&T Intellectual Property *
* and is licensed under the *
* Eclipse Public License, Version 1.0 *
* by AT&T Intellectual Property *
* *
* A copy of the License is available at *
* (with md5 checksum b35adb5213ca9657e911e9befb180842) *
* *
* Information and Software Systems Research *
* AT&T Research *
* Florham Park NJ *
* *
* Glenn Fowler <gsf@research.att.com> *
* David Korn <dgk@research.att.com> *
* Phong Vo <kpv@research.att.com> *
* *
***********************************************************************/
#pragma prototyped
/*
* Glenn Fowler
* AT&T Research
*
* convert path to native fs representation in <buf,siz>
* length of converted path returned
* if return length >= siz then buf is indeterminate, but another call
* with siz=length+1 would work
* if buf==0 then required size is returned
*/
#include <ast.h>
#if _UWIN
extern int uwin_path(const char*, char*, int);
{
}
#else
#if __CYGWIN__
extern void cygwin_conv_to_win32_path(const char*, char*);
{
size_t n;
{
return n;
}
}
#else
#if __EMX__
{
char* s;
size_t n;
{
for (s = buf; *s; s++)
if (*s == '/')
*s = '\\';
}
return n;
}
#else
#if __INTERIX
{
*buf = 0;
else
}
#else
{
size_t n;
return n;
}
#endif
#endif
#endif
#endif