xref: /freebsd/crypto/openssl/doc/internal/man3/ossl_ends_with_dirsep.pod (revision aa1a8ff2d6dbc51ef058f46f3db5a8bb77967145)
1=pod
2
3=head1 NAME
4
5ossl_ends_with_dirsep, ossl_is_absolute_path
6- internal functions to work with paths
7
8=head1 SYNOPSIS
9
10  #include "internal/cryptlib.h"
11
12  int ossl_ends_with_dirsep(const char *path);
13
14  int ossl_is_absolute_path(const char *path);
15
16=head1 DESCRIPTION
17
18ossl_ends_with_dirsep() detects whether the I<path> ends with a directory
19separator in a platform agnostic way.
20
21ossl_is_absolute_path() detects whether the I<path> is absolute path in
22a platform agnostic way.
23
24=head1 RETURN VALUES
25
26ossl_ends_with_dirsep() returns 1 if the I<path> ends with a directory
27separator, 0 otherwise.
28
29ossl_is_absolute_path() returns 1 if the I<path> is absolute, 0 otherwise.
30
31=head1 HISTORY
32
33The functions described here were added in OpenSSL 3.0.
34
35=head1 COPYRIGHT
36
37Copyright 2019-2020 The OpenSSL Project Authors. All Rights Reserved.
38
39Licensed under the Apache License 2.0 (the "License").  You may not use
40this file except in compliance with the License.  You can obtain a copy
41in the file LICENSE in the source distribution or at
42L<https://www.openssl.org/source/license.html>.
43
44=cut
45
46