Skip to main content
  • Home
  • login
  • Browse the archive

    swh mirror partner logo
swh logo
SoftwareHeritage
Software
Heritage
Mirror
Features
  • Search

  • Downloads

  • Save code now

  • Add forge now

  • Help

  • 0a4ac40
  • /
  • internal
  • /
  • man3
  • /
  • ossl_ends_with_dirsep.pod
Raw File
Permalinks

To reference or cite the objects present in the Software Heritage archive, permalinks based on SoftWare Hash IDentifiers (SWHIDs) must be used.
Select below a type of object currently browsed in order to display its associated SWHID and permalink.

  • content
  • directory
content badge Iframe embedding
swh:1:cnt:d19ce7a3b97c4da3ce55ce9d453040cc8e972f54
directory badge Iframe embedding
swh:1:dir:b852cdbfbe642337072184c234fe8e8c5c2d9825
ossl_ends_with_dirsep.pod
=pod

=head1 NAME

ossl_ends_with_dirsep, ossl_is_absolute_path
- internal functions to work with paths

=head1 SYNOPSIS

  #include "internal/cryptlib.h"

  int ossl_ends_with_dirsep(const char *path);

  int ossl_is_absolute_path(const char *path);

=head1 DESCRIPTION

ossl_ends_with_dirsep() detects whether the I<path> ends with a directory
separator in a platform agnostic way.

ossl_is_absolute_path() detects whether the I<path> is absolute path in
a platform agnostic way.

=head1 RETURN VALUES

ossl_ends_with_dirsep() returns 1 if the I<path> ends with a directory
separator, 0 otherwise.

ossl_is_absolute_path() returns 1 if the I<path> is absolute, 0 otherwise.

=head1 HISTORY

The functions described here were 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

ENEA — Copyright (C), ENEA. License: GNU AGPLv3+.
Legal notes  ::  JavaScript license information ::  Web API

back to top