smprint.c 205 B

123456789101112131415
  1. #include <u.h>
  2. #include <libc.h>
  3. char*
  4. smprint(char *fmt, ...)
  5. {
  6. va_list args;
  7. char *p;
  8. va_start(args, fmt);
  9. p = vsmprint(fmt, args);
  10. va_end(args);
  11. setmalloctag(p, getcallerpc(&fmt));
  12. return p;
  13. }