mirror of
https://github.com/QuasarApp/openssl.git
synced 2025-05-03 21:19:39 +00:00
Refactor them into inline ossl_ends_with_dirsep function in internal/cryptlib.h. Reviewed-by: Matt Caswell <matt@openssl.org> (Merged from https://github.com/openssl/openssl/pull/13306)
39 lines
877 B
Plaintext
39 lines
877 B
Plaintext
=pod
|
|
|
|
=head1 NAME
|
|
|
|
ossl_ends_with_dirsep - internal function to detect whether a path
|
|
ends with directory separator
|
|
|
|
=head1 SYNOPSIS
|
|
|
|
#include "internal/cryptlib.h"
|
|
|
|
int ossl_ends_with_dirsep(const char *path);
|
|
|
|
=head1 DESCRIPTION
|
|
|
|
ossl_ends_with_dirsep() detects whether the I<path> ends with a directory
|
|
separator in platform agnostic way.
|
|
|
|
=head1 RETURN VALUES
|
|
|
|
ossl_ends_with_dirsep() returns 1 if the I<path> ends with a directory
|
|
separator, 0 otherwise.
|
|
|
|
=head1 HISTORY
|
|
|
|
The function described here was added in OpenSSL 3.0.
|
|
|
|
=head1 COPYRIGHT
|
|
|
|
Copyright 2019-2020 The OpenSSL Project Authors. All Rights Reserved.
|
|
|
|
Licensed under the Apache License 2.0 (the "License"). You may not use
|
|
this file except in compliance with the License. You can obtain a copy
|
|
in the file LICENSE in the source distribution or at
|
|
L<https://www.openssl.org/source/license.html>.
|
|
|
|
=cut
|
|
|