StrCpy: Difference between revisions

From ZDoom Wiki
Jump to navigation Jump to search
Content deleted Content added
mNo edit summary
m replacing svn tags with new tags for 2.6.0 release
Line 1: Line 1:
bool '''StrCpy''' (a:''destination'', string ''source''[, int ''source_index'']); {{svn|3227}}
bool '''StrCpy''' (a:''destination'', string ''source''[, int ''source_index'']); {{new}}


==Usage==
==Usage==

Revision as of 07:32, 2 July 2012

bool StrCpy (a:destination, string source[, int source_index]); (New from 5.0.0)

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.