1 #ifndef _IPXE_EDITSTRING_H 2 #define _IPXE_EDITSTRING_H int replace_string(struct edit_string *string, const char *replacement)
Replace editable string.
unsigned int cursor
Cursor position.
unsigned int last_cursor
Last cursor position.
#define __nonnull
Declare a function's pointer parameters as non-null - i.e.
static __nonnull void init_editstring(struct edit_string *string, char **buf)
Initialise editable string.
char ** buf
Dynamically allocated string buffer.
unsigned int mod_start
Start of modified portion of string.
__attribute__((nonnull(1))) int replace_string(struct edit_string *string
unsigned int mod_end
End of modified portion of string.
FILE_LICENCE(GPL2_OR_LATER_OR_UBDL)