FLTK 1.4.5: fl_string_functions.h Source File

FLTK 1.4.5

Loading...
Searching...
No Matches
fl_string_functions.h
Go to the documentation of this file.
1/*
2 * Platform agnostic string portability functions for the Fast Light Tool Kit (FLTK).
3 *
4 * Copyright 2020-2022 by Bill Spitzak and others.
5 *
6 * This library is free software. Distribution and use rights are outlined in
7 * the file "COPYING" which should have been included with this file. If this
8 * file is missing or damaged, see the license at:
9 *
10 * https://www.fltk.org/COPYING.php
11 *
12 * Please see the following page on how to report bugs and issues:
13 *
14 * https://www.fltk.org/bugs.php
15 */
16
21
22#ifndef _FL_fl_string_functions_h_
23#define _FL_fl_string_functions_h_
24
25#include "Fl_Export.H"
26
27#ifdef __cplusplus
28extern "C" {
29#endif
30
31#include <stddef.h> // size_t
32
37
38FL_EXPORT char* fl_strdup(const char *s);
39
40FL_EXPORT size_t fl_strlcpy(char *, const char *, size_t);
41
43
44#ifdef __cplusplus
45}
46#endif /* __cplusplus */
47
48
49#endif /* _FL_fl_string_functions_h_ */
fl_strdup
char * fl_strdup(const char *s)
Cross platform interface to POSIX function strdup().
Definition fl_string_functions.cxx:32