Mirror of :pserver:cvs@cvs.fefe.de:/cvs libowfat https://www.fefe.de/libowfat/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

10 lines
278 B

  1. #include "fmt.h"
  2. #include "rangecheck.h"
  3. size_t fmt_pb_string(char* dest,size_t fieldno,const char* s,size_t l) {
  4. size_t n=fmt_pb_tag(dest,fieldno,2);
  5. size_t m;
  6. if (add_of(m,fmt_pb_type2_string(NULL,s,l),n)) return 0;
  7. return n+fmt_pb_type2_string(dest?dest+n:0,s,l);
  8. }