1 =pod 2 3 =head1 NAME 4 5 ossl_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 18 ossl_ends_with_dirsep() detects whether the I<path> ends with a directory 19 separator in a platform agnostic way. 20 21 ossl_is_absolute_path() detects whether the I<path> is absolute path in 22 a platform agnostic way. 23 24 =head1 RETURN VALUES 25 26 ossl_ends_with_dirsep() returns 1 if the I<path> ends with a directory 27 separator, 0 otherwise. 28 29 ossl_is_absolute_path() returns 1 if the I<path> is absolute, 0 otherwise. 30 31 =head1 HISTORY 32 33 The functions described here were added in OpenSSL 3.0. 34 35 =head1 COPYRIGHT 36 37 Copyright 2019-2020 The OpenSSL Project Authors. All Rights Reserved. 38 39 Licensed under the Apache License 2.0 (the "License"). You may not use 40 this file except in compliance with the License. You can obtain a copy 41 in the file LICENSE in the source distribution or at 42 L<https://www.openssl.org/source/license.html>. 43 44 =cut 45 46