FRX SDK Documentation
2025 SP0
Loading...
Searching...
No Matches
SDK
FxARX
include
ac_tcslen.h
Go to the documentation of this file.
1
#pragma once
2
3
//
4
// (C) Copyright 2005-2024 by Graebert GmbH.
5
//
6
// Permission to use, copy, modify, and distribute this software in
7
// object code form for any purpose and without fee is hereby granted,
8
// provided that the above copyright notice appears in all copies and
9
// that both that copyright notice and the limited warranty and
10
// restricted rights notice below appear in all supporting
11
// documentation.
12
//
13
// GRAEBERT PROVIDES THIS PROGRAM "AS IS" AND WITH ALL FAULTS.
14
// GRAEBERT SPECIFICALLY DISCLAIMS ANY IMPLIED WARRANTY OF
15
// MERCHANTABILITY OR FITNESS FOR A PARTICULAR USE. GRAEBERT GMBH
16
// DOES NOT WARRANT THAT THE OPERATION OF THE PROGRAM WILL BE
17
// UNINTERRUPTED OR ERROR FREE.
18
19
#include <wchar.h>
20
21
#ifdef _tcslen
22
#undef _tcslen
23
#endif
24
25
#ifdef UNICODE
26
#define _tcslen ac_wcslen
27
#else
28
#define _tcslen ac_strlen
29
#endif
30
31
#ifdef wcslen
32
#undef wcslen
33
#endif
34
#define wcslen ac_wcslen
35
#ifdef strlen
36
#undef strlen
37
#endif
38
#define strlen ac_strlen
39
40
inline
unsigned
ac_wcslen
(
const
wchar_t
*
param_1
)
41
{
42
unsigned
len = 0;
43
while
( *
param_1
!=
L
'\0'
) {
param_1
++; len++; }
44
return
len;
45
}
46
47
inline
unsigned
ac_strlen
(
const
char
*
param_1
)
48
{
49
unsigned
len = 0;
50
while
( *
param_1
!=
'\0'
) {
param_1
++; len++; }
51
return
len;
52
}
ac_wcslen
unsigned ac_wcslen(const wchar_t *param_1)
Definition
ac_tcslen.h:40
ac_strlen
unsigned ac_strlen(const char *param_1)
Definition
ac_tcslen.h:47
AcArrayObjectCopyReallocator
Definition
_AcArray.h:21
Generated on Mon Mar 4 2024 12:50:10