Advertisement
g0mb4

expando_callback_no_color

Feb 14th, 2024
862
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.37 KB | None | 0 0
  1. static void simple_s(void *data, MuttFormatFlags flags, struct Buffer *buf)
  2. {
  3.   const struct SimpleExpandoData *sd = data;
  4.  
  5.   const char *s = NONULL(sd->s);
  6.   buf_strcpy(buf, s);
  7. }
  8.  
  9. static void simple_C(void *data, MuttFormatFlags flags, struct Buffer *buf)
  10. {
  11.   const struct SimpleExpandoData *sd = data;
  12.  
  13.   const int num = sd->C;
  14.   buf_printf(buf, "%d", num);
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement