comparison src/fns.c @ 56364:78e8df7d1ad8

(Fclear_string): Correct previous change.
author Luc Teirlinck <teirllm@auburn.edu>
date Tue, 06 Jul 2004 19:36:56 +0000
parents 1f6748b338da
children 72eb85758337 029a652ac817
comparison
equal deleted inserted replaced
56363:278fbbc28f40 56364:78e8df7d1ad8
2368 doc: /* Clear the contents of STRING. 2368 doc: /* Clear the contents of STRING.
2369 This makes STRING unibyte and may change its length. */) 2369 This makes STRING unibyte and may change its length. */)
2370 (string) 2370 (string)
2371 Lisp_Object string; 2371 Lisp_Object string;
2372 { 2372 {
2373 int len = SBYTES (string); 2373 int len;
2374 CHECK_STRING (string); 2374 CHECK_STRING (string);
2375 len = SBYTES (string);
2375 bzero (SDATA (string), len); 2376 bzero (SDATA (string), len);
2376 STRING_SET_CHARS (string, len); 2377 STRING_SET_CHARS (string, len);
2377 STRING_SET_UNIBYTE (string); 2378 STRING_SET_UNIBYTE (string);
2378 return Qnil; 2379 return Qnil;
2379 } 2380 }