GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  USTRDUP (3)

NAME

ustrdup - Duplicates a string. Allegro game programming library.

CONTENTS

Synopsis
Description
See Also

SYNOPSIS

#include <allegro.h>

char *ustrdup(const char *src)

DESCRIPTION

This functions copies the null-terminated string ‘src’ into a newly allocated area of memory, effectively duplicating it. Example:

   void manipulate_string(const char *input_string)
   {
      char *temp_buffer = ustrdup(input_string);
      /* Now we can modify temp_buffer */
      ...

RETURN VALUE

Returns the newly allocated string. This memory must be freed by the caller. Returns NULL if it cannot allocate space for the duplicated string.

SEE ALSO

_ustrdup(3), uconvert(3), ustrsize(3), ustrsizez(3), exconfig(3)
Search for    or go to Top of page |  Section 3 |  Main Index


Allegro USTRDUP (3) version 4.4.2

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.