Start of generic editable string support

This commit is contained in:
Michael Brown
2006-12-19 19:28:12 +00:00
parent 70d20c4e7a
commit 1bc3514bd8
3 changed files with 182 additions and 1 deletions

View File

@@ -0,0 +1,22 @@
#ifndef _EDITSTRING_H
#define _EDITSTRING_H
/** @file
*
* Editable strings
*
*/
/** An editable string */
struct edit_string {
/** Buffer for string */
char *buf;
/** Size of buffer (including terminating NUL) */
size_t len;
/** Cursor position */
unsigned int cursor;
};
extern int edit_string ( struct edit_string *string, int key );
#endif /* _EDITSTRING_H */