NeoMutt  2024-11-14-34-g5aaf0d
Teaching an old dog new tricks
DOXYGEN
Loading...
Searching...
No Matches
format.h
Go to the documentation of this file.
1
23#ifndef MUTT_EXPANDO_FORMAT_H
24#define MUTT_EXPANDO_FORMAT_H
25
26#include <stdbool.h>
27#include <stddef.h>
28
33{
37};
38
39struct Buffer;
40
41int format_string(struct Buffer *buf, int min_cols, int max_cols, enum FormatJustify justify, char pad_char, const char *str, size_t n, bool arboreal);
42
43#endif /* MUTT_EXPANDO_FORMAT_H */
int format_string(struct Buffer *buf, int min_cols, int max_cols, enum FormatJustify justify, char pad_char, const char *str, size_t n, bool arboreal)
Format a string, like snprintf()
Definition: format.c:108
FormatJustify
Alignment for format_string()
Definition: format.h:33
@ JUSTIFY_RIGHT
Right justify the text.
Definition: format.h:36
@ JUSTIFY_LEFT
Left justify the text.
Definition: format.h:34
@ JUSTIFY_CENTER
Centre the text.
Definition: format.h:35
String manipulation buffer.
Definition: buffer.h:36