"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "have_memmv.c" between
calc-2.12.7.2.tar.bz2 and calc-2.12.7.6.tar.bz2

About: Calc is a C-style arbitrary precision calculator.

have_memmv.c  (calc-2.12.7.2.tar.bz2):have_memmv.c  (calc-2.12.7.6.tar.bz2)
/* /*
* have_memmv - Determine if we have memmove() * have_memmv - Determine if we have memmove()
* *
* Copyright (C) 1999 Landon Curt Noll * Copyright (C) 1999,2021 Landon Curt Noll
* *
* Calc is open software; you can redistribute it and/or modify it under * Calc is open software; you can redistribute it and/or modify it under
* the terms of the version 2.1 of the GNU Lesser General Public License * the terms of the version 2.1 of the GNU Lesser General Public License
* as published by the Free Software Foundation. * as published by the Free Software Foundation.
* *
* Calc is distributed in the hope that it will be useful, but WITHOUT * Calc is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
* or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General
* Public License for more details. * Public License for more details.
* *
skipping to change at line 42 skipping to change at line 42
* compile on your system. * compile on your system.
* *
* This prog outputs several defines: * This prog outputs several defines:
* *
* HAVE_MEMMOVE * HAVE_MEMMOVE
* defined ==> use memmove() * defined ==> use memmove()
* undefined ==> use internal slow memmove() instead * undefined ==> use internal slow memmove() instead
*/ */
#include <stdio.h> #include <stdio.h>
#include <string.h>
#define MOVELEN 3 #define MOVELEN 3
char src[] = "chongo was here"; char src[] = "chongo was here";
char dest[MOVELEN+1]; char dest[MOVELEN+1];
int int
main(void) main(void)
{ {
#if defined(HAVE_NO_MEMMOVE) #if defined(HAVE_NO_MEMMOVE)
 End of changes. 2 change blocks. 
1 lines changed or deleted 2 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)