aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRichard M. Stallman2003-07-29 17:36:52 +0000
committerRichard M. Stallman2003-07-29 17:36:52 +0000
commit85cad5793c0ea4cfd3108f9519a283b59de573a6 (patch)
treedf40439b91dba33a14a1d24d09187c21c1125f02 /src
parent2eaa00bae4d861e49b8de3a095d860189551a1e9 (diff)
downloademacs-85cad5793c0ea4cfd3108f9519a283b59de573a6.tar.gz
emacs-85cad5793c0ea4cfd3108f9519a283b59de573a6.zip
(Fclear_string): New function.
(syms_of_fns): defsubr it.
Diffstat (limited to 'src')
-rw-r--r--src/fns.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/fns.c b/src/fns.c
index 93ef4093b29..9ee15ff4994 100644
--- a/src/fns.c
+++ b/src/fns.c
@@ -2325,6 +2325,20 @@ ARRAY is a vector, string, char-table, or bool-vector. */)
2325 } 2325 }
2326 return array; 2326 return array;
2327} 2327}
2328
2329DEFUN ("clear-string", Fclear_string, Sclear_string,
2330 1, 1, 0,
2331 doc: /* Clear the contents of STRING.
2332This makes STRING unibyte and may change its length. */)
2333 (string)
2334 Lisp_Object string;
2335{
2336 int len = SBYTES (string);
2337 bzero (SDATA (string), len);
2338 STRING_SET_CHARS (string, len);
2339 STRING_SET_UNIBYTE (string);
2340 return Qnil;
2341}
2328 2342
2329DEFUN ("char-table-subtype", Fchar_table_subtype, Schar_table_subtype, 2343DEFUN ("char-table-subtype", Fchar_table_subtype, Schar_table_subtype,
2330 1, 1, 0, 2344 1, 1, 0,
@@ -5659,6 +5673,7 @@ invoked by mouse clicks and mouse menu items. */);
5659 defsubr (&Slax_plist_put); 5673 defsubr (&Slax_plist_put);
5660 defsubr (&Sequal); 5674 defsubr (&Sequal);
5661 defsubr (&Sfillarray); 5675 defsubr (&Sfillarray);
5676 defsubr (&Sclear_string);
5662 defsubr (&Schar_table_subtype); 5677 defsubr (&Schar_table_subtype);
5663 defsubr (&Schar_table_parent); 5678 defsubr (&Schar_table_parent);
5664 defsubr (&Sset_char_table_parent); 5679 defsubr (&Sset_char_table_parent);