File:  [Coherent Logic Development] / freem / src / libfill.h
Revision 1.2: download - view: text, annotated - select for diffs
Sun Mar 9 15:20:18 2025 UTC (12 months, 3 weeks ago) by snw
Branches: MAIN
CVS tags: HEAD
Begin formatting overhaul and REUSE compliance

    1: /*
    2:  *                            *
    3:  *                           * *
    4:  *                          *   *
    5:  *                     ***************
    6:  *                      * *       * *
    7:  *                       *  MUMPS  *
    8:  *                      * *       * *
    9:  *                     ***************
   10:  *                          *   *
   11:  *                           * *
   12:  *                            *
   13:  *
   14:  *   libfill.h
   15:  *    Provides correct definitions of standard library
   16:  *    functions to get around compiler warnings until 
   17:  *    we can move to using the standard headers.
   18:  *
   19:  *  
   20:  *   Author: Serena Willis <snw@coherent-logic.com>
   21:  *    Copyright (C) 1998 MUG Deutschland
   22:  *    Copyright (C) 2020 Coherent Logic Development LLC
   23:  *
   24:  *
   25:  *   This file is part of FreeM.
   26:  *
   27:  *   FreeM is free software: you can redistribute it and/or modify
   28:  *   it under the terms of the GNU Affero Public License as published by
   29:  *   the Free Software Foundation, either version 3 of the License, or
   30:  *   (at your option) any later version.
   31:  *
   32:  *   FreeM is distributed in the hope that it will be useful,
   33:  *   but WITHOUT ANY WARRANTY; without even the implied warranty of
   34:  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   35:  *   GNU Affero Public License for more details.
   36:  *
   37:  *   You should have received a copy of the GNU Affero Public License
   38:  *   along with FreeM.  If not, see <https://www.gnu.org/licenses/>.
   39:  *
   40:  **/
   41: 
   42: #ifndef _LIBFILL_H
   43: # define _LIBFILL_H
   44: 
   45: void exit(int status);
   46: char *strcat(char *dest, const char *src);
   47: 
   48: //FILE *popen(const char *command, const char *type);
   49: char *strcpy(char *dest, const char *src);
   50: char *strchr(const char *s, int c);
   51: char *strncpy(char *dest, const char *src, size_t n);
   52: unsigned int sleep(unsigned int seconds);
   53: void free(void *ptr);
   54: size_t strlen(const char *s);
   55: int strncmp(const char *s1, const char *s2, size_t n);
   56: char *strtok(char *str, const char *delim);
   57: void *calloc(size_t nmemb, size_t size);
   58: void *malloc(size_t size);
   59: char *strncat(char *dest, const char *src, size_t n);
   60: 
   61: #endif

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>