commit | 8ad15a9971b5c23fc25ac3993c44fdbf74f4cfb7 | [log] [tgz] |
---|---|---|
author | Peter Tyser <ptyser@xes-inc.com> | Sun Oct 25 15:12:54 2009 -0500 |
committer | Wolfgang Denk <wd@denx.de> | Tue Oct 27 20:58:25 2009 +0100 |
tree | ec205cb583ada1338205f8b250e975932e42910a | |
parent | 03e46c47231d97a228c03161fe5d1f04caa759cc [diff] |
readline(): Add ability to modify a string buffer If the 'buf' parameter is a non-0-length string, its contents will be edited. Previously, the initial contents of 'buf' were ignored and the user entered its contents from scratch. This change is necessary to support the upcoming "editenv" command but could also be used for future commands which require a user to modify an existing string. Signed-off-by: Peter Tyser <ptyser@xes-inc.com>