Mercurial > projects > dwt-linux
changeset 313:9f01a0643e26
comment
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Mon, 08 Sep 2008 01:35:26 +0200 |
parents | 17757a168f51 |
children | 0f7ac29ac726 |
files | dwt/dwthelper/utils.d |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/dwt/dwthelper/utils.d Mon Sep 08 01:35:19 2008 +0200 +++ b/dwt/dwthelper/utils.d Mon Sep 08 01:35:26 2008 +0200 @@ -752,6 +752,10 @@ return str; } +/++ + + This is like tango.stdc.stringz.toStringz, but in case of an empty input string, + + this function returns a pointer to a null value instead of a null ptr. + +/ public char* toStringzValidPtr( String src ){ if( src ){ return src.toStringz();