| 1 | // Licensed to the .NET Foundation under one or more agreements. | 
|---|
| 2 | // The .NET Foundation licenses this file to you under the MIT license. | 
|---|
| 3 | // See the LICENSE file in the project root for more information. | 
|---|
| 4 |  | 
|---|
| 5 | /*** | 
|---|
| 6 | *strtok_s.c - tokenize a string with given delimiters | 
|---|
| 7 | * | 
|---|
| 8 |  | 
|---|
| 9 | * | 
|---|
| 10 | *Purpose: | 
|---|
| 11 | *   defines strtok_s() - breaks string into series of token | 
|---|
| 12 | *   via repeated calls. | 
|---|
| 13 | * | 
|---|
| 14 | *******************************************************************************/ | 
|---|
| 15 |  | 
|---|
| 16 | #include <string.h> | 
|---|
| 17 | #include <errno.h> | 
|---|
| 18 | #include <limits.h> | 
|---|
| 19 | #include "internal_securecrt.h" | 
|---|
| 20 |  | 
|---|
| 21 | #include "mbusafecrt_internal.h" | 
|---|
| 22 |  | 
|---|
| 23 | #define _SECURE_ITOA | 
|---|
| 24 |  | 
|---|
| 25 | #define _UNICODE | 
|---|
| 26 | #define TCHAR wchar_t | 
|---|
| 27 | #define _T(x)       L##x | 
|---|
| 28 | #include "xtox_s.inl" | 
|---|
| 29 |  | 
|---|