FLTK 1.4.0
Fl_string

Functions

FL_EXPORT char * fl_strdup (const char *s)
 Cross platform interface to POSIX function strdup(). More...
 

Detailed Description

Function Documentation

◆ fl_strdup()

FL_EXPORT char* fl_strdup ( const char *  s)

Cross platform interface to POSIX function strdup().

The fl_strdup() function returns a pointer to a new string which is a duplicate of the string 's'. Memory for the new string is obtained with malloc(3), and can be freed with free(3).

Implementation:

  • POSIX: strdup()
  • WinAPI: _strdup()