CYGWIN_CREATE_PATH(3)

NAME
cygwin_create_path

SYNOPSIS

#include <sys/cygwin.h>

void * cygwin_create_path(cygwin_conv_path_t what, const void * from);

DESCRIPTION

This is equivalent to the cygwin_conv_path, except that cygwin_create_path does not take a buffer pointer for the result of the conversion as input. Rather it allocates the buffer itself using malloc(3) and returns a pointer to this buffer. In case of error it returns NULL and sets errno to one of the values defined for cygwin_conv_path. Additionally errno can be set to the below value.

        ENOMEM        Insufficient memory was available.

When you don't need the returned buffer anymore, use free(3) to deallocate it.

SEE ALSO

See also cygwin_conv_path

COPYRIGHT

Copyright © Cygwin authors

Permission is granted to make and distribute verbatim copies of this documentation provided the copyright notice and this permission notice are preserved on all copies.

Permission is granted to copy and distribute modified versions of this documentation under the conditions for verbatim copying, provided that the entire resulting derived work is distributed under the terms of a permission notice identical to this one.

Permission is granted to copy and distribute translations of this documentation into another language, under the above conditions for modified versions, except that this permission notice may be stated in a translation approved by the Free Software Foundation.