Commit 7776129a authored by claes's avatar claes

StoNumSp and CStoNumSp added

parent 848cd51b
...@@ -78,6 +78,26 @@ ...@@ -78,6 +78,26 @@
ut[size-1] = 0; \ ut[size-1] = 0; \
} }
/*_*
STONUMSP
Store a number of characters into string attribute
@aref stonumsp StoNumSp
*/
#define stonumsp_exec(ut,in,size,num) \
strncpy( ut, in, num < size ? num : size); \
ut[size-1] = 0;
/*_*
CSTONUMSP
Store conditionally a number of characters into string attribute
@aref cstonumsp CStoNumSp
*/
#define cstonumsp_exec(ut,in,cond,size, num) \
if ( cond) { \
strncpy( ut, in, num < size ? num : size); \
ut[size-1] = 0; \
}
/*_* /*_*
SUBSTR SUBSTR
@aref substr SubStr @aref substr SubStr
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment