/usr/include/sl/sl.h is in libsimplelist0-dev 0.3.4-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 | /*
SL - A small and efficient linked list library.
Copyright (C) 2003-2005 Stig Brautaset. All rights reserved.
This file is part of SL.
SL is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
SL is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with SL; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifndef sl__sl_h
#define sl__sl_h
#ifdef __cplusplus /* let C++ coders use this library */
extern "C" {
#endif
void *sl_push(void *root, void *p);
void *sl_pop(void *root);
void *sl_unshift(void *root, void *p);
void *sl_shift(void *root);
void *sl_reverse(void *root);
void *sl_map(void *root, int (*func)(void *, void *), void *data);
void *sl_filter(void *root, int (*func)(void *, void *), void *data);
void *sl_split(void *root);
void *sl_merge(void *p1, void *p2, int (*cmp)(void *, void *));
void *sl_mergesort(void *root, int (*cmp)(void *, void *));
int sl_count(void *p);
#define sl_free(root, func) sl__free(root, func)
void sl__free(void *root, void (*func)(void *));
#ifdef __cplusplus
}
#endif
#endif /* !sl__sl_h */
|