# include "splintMacros.nf"
# include "basic.h"
# include "osd.h"
-# include "portab.h"
/*@only@*/ /*@notnull@*/
cstring cstring_newEmpty (void)
return cstring_undefined;
}
-/*@i3534 @*/
-/*@ignore@*/ /* !!! DRL don't ignore large segments like this without a good reason! */
-
/* changes strings like "sdf" "sdfsd" into "sdfsdfsd"*/
/* This function understands that "sdf\" \"sdfsdf" is okay*/
static mstring doMergeString (cstring s)
retPtr++;
*retPtr = '\0';
BADEXIT;
- return ret;
+
+ /*@notreached@*/ return ret;
}
else
{
ptr++;
}/* end while */
- retPtr = '\0';
+ *retPtr = '\0';
return ret;
}
/* add the null character */
*retPtr = '\0';
- *len = retPtr - ret;
+ llassert( (retPtr-ret) >= 0 );
+ *len = (size_t)(retPtr - ret);
return ret;
}
return c;
}
-/*@end@*/
+