histedit.c (213811) | histedit.c (213814) |
---|---|
1/*- 2 * Copyright (c) 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * This code is derived from software contributed to Berkeley by 6 * Kenneth Almquist. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 22 unchanged lines hidden (view full) --- 31 */ 32 33#ifndef lint 34#if 0 35static char sccsid[] = "@(#)histedit.c 8.2 (Berkeley) 5/4/95"; 36#endif 37#endif /* not lint */ 38#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * This code is derived from software contributed to Berkeley by 6 * Kenneth Almquist. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 22 unchanged lines hidden (view full) --- 31 */ 32 33#ifndef lint 34#if 0 35static char sccsid[] = "@(#)histedit.c 8.2 (Berkeley) 5/4/95"; 36#endif 37#endif /* not lint */ 38#include <sys/cdefs.h> |
39__FBSDID("$FreeBSD: head/bin/sh/histedit.c 213811 2010-10-13 22:18:03Z obrien $"); | 39__FBSDID("$FreeBSD: head/bin/sh/histedit.c 213814 2010-10-13 23:29:09Z obrien $"); |
40 41#include <sys/param.h> 42#include <limits.h> 43#include <paths.h> 44#include <stdio.h> 45#include <stdlib.h> 46#include <unistd.h> 47/* --- 365 unchanged lines hidden (view full) --- 413 if (*s == *p && strncmp(s, p, plen) == 0) { 414 while (*r) 415 STPUTC(*r++, dest); 416 s += plen; 417 *p = '\0'; /* so no more matches */ 418 } else 419 STPUTC(*s++, dest); 420 } | 40 41#include <sys/param.h> 42#include <limits.h> 43#include <paths.h> 44#include <stdio.h> 45#include <stdlib.h> 46#include <unistd.h> 47/* --- 365 unchanged lines hidden (view full) --- 413 if (*s == *p && strncmp(s, p, plen) == 0) { 414 while (*r) 415 STPUTC(*r++, dest); 416 s += plen; 417 *p = '\0'; /* so no more matches */ 418 } else 419 STPUTC(*s++, dest); 420 } |
421 STACKSTRNUL(dest); | 421 STPUTC('\0', dest); |
422 dest = grabstackstr(dest); 423 424 return (dest); 425} 426 427int 428not_fcnumber(const char *s) 429{ --- 84 unchanged lines hidden --- | 422 dest = grabstackstr(dest); 423 424 return (dest); 425} 426 427int 428not_fcnumber(const char *s) 429{ --- 84 unchanged lines hidden --- |