stlab.adobe.com Adobe Systems Incorporated
cstring.hpp
Go to the documentation of this file.
1 /*
2  Copyright 2005-2007 Adobe Systems Incorporated
3  Distributed under the MIT License (see accompanying file LICENSE_1_0_0.txt
4  or a copy at http://stlab.adobe.com/licenses.html)
5 */
6 
7 /*************************************************************************************************/
8 
9 #ifndef ADOBE_CSTRING_HPP
10 #define ADOBE_CSTRING_HPP
11 
12 /*************************************************************************************************/
13 
14 #include <adobe/config.hpp>
15 
16 /*************************************************************************************************/
17 
18 namespace adobe {
19 
20 /*************************************************************************************************/
21 
22 inline int strcmp(const char* x, const char* y)
23 {
24  while (*x && *x == *y) { ++x; ++y; }
25  return *x - *y;
26 }
27 
28 /*************************************************************************************************/
29 
30 } // namespace adobe
31 
32 /*************************************************************************************************/
33 
34 #endif
35 
36 /*************************************************************************************************/
int strcmp(const char *x, const char *y)
Definition: cstring.hpp:22

Copyright © 2006-2007 Adobe Systems Incorporated.

Use of this website signifies your agreement to the Terms of Use and Online Privacy Policy.

Search powered by Google