Changeset 183:c4643827733c

Show
Ignore:
Timestamp:
03/10/08 11:48:51 (9 months ago)
Author:
Frank Benoit <benoit@tionex.de>
branch:
default
Message:

Added toStringzValidPtr to sync with dwt-linux

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • dwt/dwthelper/utils.d

    r180 r183  
    321321} 
    322322 
    323 public char* toStringzValidPtr( char[] src ){ 
    324     if( src ){ 
    325         return src.toStringz(); 
    326     } 
    327     else{ 
    328         static const char[] nullPtr = "\0"; 
    329         return nullPtr.ptr; 
    330     } 
    331 } 
    332  
    333323static char[] toHex(uint value, bool prefix = true, int radix = 8){ 
    334324    return tango.text.convert.Integer.toString(