plugins/include/string.inc
changeset 681 02f6c1c5fd06
parent 680 b5f7893fd4f6
child 748 0433498ab05c
     1.1 --- a/plugins/include/string.inc	Wed Apr 11 16:24:50 2007 +0000
     1.2 +++ b/plugins/include/string.inc	Wed Apr 11 20:07:20 2007 +0000
     1.3 @@ -73,6 +73,7 @@
     1.4  
     1.5  /**
     1.6   * Backwards compatible stock - StrCompare is now strcmp
     1.7 + * @deprecated		Renamed to strcmp
     1.8   */
     1.9  stock StrCompare(const String:str1[], const String:str2[], bool:caseSensitive=true)
    1.10  {
    1.11 @@ -104,7 +105,16 @@
    1.12   * @param source		Source string buffer to copy from.
    1.13   * @return				Number of cells written.
    1.14   */
    1.15 -native StrCopy(String:dest[], destLen, const String:source[]);
    1.16 +native strcopy(String:dest[], destLen, const String:source[]);
    1.17 +
    1.18 +/**
    1.19 + * Backwards compatibility stock - use strcopy
    1.20 + * @deprecated			Renamed to strcopy
    1.21 + */
    1.22 +stock StrCopy(String:dest[], destLen, const String:source[])
    1.23 +{
    1.24 +	return strcopy(dest, destLen, source);
    1.25 +}
    1.26  
    1.27  /**
    1.28   * Formats a string according to the SourceMod format rules (see documentation).