NeoMutt
2024-10-02-7-gd3e66a
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
32
enum
FormatJustify
33
{
34
JUSTIFY_LEFT
= -1,
35
JUSTIFY_CENTER
= 0,
36
JUSTIFY_RIGHT
= 1,
37
};
38
39
struct
Buffer
;
40
41
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);
42
43
#endif
/* MUTT_EXPANDO_FORMAT_H */
format_string
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
FormatJustify
Alignment for format_string()
Definition:
format.h:33
JUSTIFY_RIGHT
@ JUSTIFY_RIGHT
Right justify the text.
Definition:
format.h:36
JUSTIFY_LEFT
@ JUSTIFY_LEFT
Left justify the text.
Definition:
format.h:34
JUSTIFY_CENTER
@ JUSTIFY_CENTER
Centre the text.
Definition:
format.h:35
Buffer
String manipulation buffer.
Definition:
buffer.h:36