StrCpy: Difference between revisions

From ZDoom Wiki
Jump to navigation Jump to search
Content deleted Content added
Tsrow (talk | contribs)
m moved Strcopy to StrCopy: title capitalization
Tsrow (talk | contribs)
mNo edit summary
Line 1: Line 1:
bool '''Strcopy'''(a:''destination'', string ''source''[, int ''from'']); {{svn|3227}}
bool '''StrCopy''' (a:''destination'', string ''source''[, int ''source_index'']); {{svn|3227}}


==Usage==
==Usage==
Copy a string in an array as a series of characters. Optionally, the copy can start from a given index in the source string.
Copy a ''source'' string to a ''destination'' array as a series of characters. Optionally, the copy can start from a given index in the source string.
{{verification}}
{{verification}}


==Return Value==
==Return Value==
True if the entire string (or substring) was successfully copied in the array; false if the copy ran out of room or if a negative ''from'' index was given. {{verification}}
True if the entire string (or substring) was successfully copied to the array; false if the copy ran out of room or if a negative ''source_index'' was given. {{verification}}


==Example==
==Example==

Revision as of 01:29, 11 December 2011

bool StrCopy (a:destination, string source[, int source_index]); (development version r3227+ only)

Usage

Copy a source string to a destination array as a series of characters. Optionally, the copy can start from a given index in the source string. (Verification needed)

Return Value

True if the entire string (or substring) was successfully copied to the array; false if the copy ran out of room or if a negative source_index was given. (Verification needed)

Example

Note: This article lists no examples. If you make use of this feature in your own project(s) or know of any basic examples that could be shared, please add them. This will make it easier to understand for future authors seeking assistance. Your contributions are greatly appreciated.