ProxSpace/msys2/usr/share/man/man3/cygwin_split_path.3
2023-09-22 00:10:50 +02:00

74 lines
2.6 KiB
Groff

'\" t
.\" Title: cygwin_split_path
.\" Author: [FIXME: author] [see http://www.docbook.org/tdg5/en/html/author]
.\" Generator: DocBook XSL Stylesheets vsnapshot <http://docbook.sf.net/>
.\" Date: 07/14/2023
.\" Manual: Cygwin API Reference
.\" Source: Cygwin API Reference
.\" Language: English
.\"
.TH "CYGWIN_SPLIT_PATH" "3" "07/14/2023" "Cygwin API Reference" "Cygwin API Reference"
.\" -----------------------------------------------------------------
.\" * Define some portability stuff
.\" -----------------------------------------------------------------
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.\" http://bugs.debian.org/507673
.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.ie \n(.g .ds Aq \(aq
.el .ds Aq '
.\" -----------------------------------------------------------------
.\" * set default formatting
.\" -----------------------------------------------------------------
.\" disable hyphenation
.nh
.\" disable justification (adjust text to left margin only)
.ad l
.\" -----------------------------------------------------------------
.\" * MAIN CONTENT STARTS HERE *
.\" -----------------------------------------------------------------
.SH "NAME"
cygwin_split_path
.SH "SYNOPSIS"
.sp
.ft B
.nf
#include <sys/cygwin\&.h>
.fi
.ft
.HP \w'void\ cygwin_split_path('u
.BI "void cygwin_split_path(const\ char\ *\ " "path" ", char\ *\ " "dir" ", char\ *\ " "file" ");"
.SH "DESCRIPTION"
.PP
Split a path into the directory and the file portions\&. Both
\fIdir\fR
and
\fIfile\fR
are expected to point to buffers of sufficient size\&.
.SH "EXAMPLE"
.PP
\fBExample\ \&2.2.\ \&Example use of cygwin_split_path\fR
.sp
.if n \{\
.RS 4
.\}
.nf
char dir[200], file[100];
cygwin_split_path("c:/foo/bar\&.c", dir, file);
printf("dir=%s, file=%s\en", dir, file);
.fi
.if n \{\
.RE
.\}
.SH "COPYRIGHT"
.br
.PP
Copyright \(co Cygwin authors
.PP
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.
.PP
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.
.PP
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.
.sp