2 * The exception module defines all system-level exceptions and provides a
3 * mechanism to alter system-level error handling.
5 * Copyright: Copyright (c) 2005-2008, The D Runtime Project
6 * License: BSD Style, see LICENSE
11 private import stdc.string;
13 char[] intToString( char[] buf, uint val )
15 assert( buf.length > 9 );
16 char* p = buf.ptr + buf.length;
20 *--p = val % 10 + '0';
23 return buf[p - buf.ptr .. $];
27 int dstrcmp( in char[] s1, in char[] s2 )
32 if( memcmp( s1.ptr, s2.ptr, len ) == 0 )
34 return s1.length > s2.length ? 1 : -1;