Annotation of rsaref/source/r_stdlib.c, revision 1.1

1.1     ! root        1: /* R_STDLIB.C - platform-specific C library routines for RSAREF
        !             2:  */
        !             3: 
        !             4: /* Copyright (C) 1991-2 RSA Laboratories, a division of RSA Data
        !             5:    Security, Inc. All rights reserved.
        !             6:  */
        !             7: 
        !             8: #include "global.h"
        !             9: #include "rsaref.h"
        !            10: #include <string.h>
        !            11: 
        !            12: void R_memset (output, value, len)
        !            13: POINTER output;                                             /* output block */
        !            14: int value;                                                         /* value */
        !            15: unsigned int len;                                        /* length of block */
        !            16: {
        !            17:   if (len)
        !            18:     memset (output, value, len);
        !            19: }
        !            20: 
        !            21: void R_memcpy (output, input, len)
        !            22: POINTER output;                                             /* output block */
        !            23: POINTER input;                                               /* input block */
        !            24: unsigned int len;                                       /* length of blocks */
        !            25: {
        !            26:   if (len)
        !            27:     memcpy (output, input, len);
        !            28: }
        !            29: 
        !            30: int R_memcmp (firstBlock, secondBlock, len)
        !            31: POINTER firstBlock;                                          /* first block */
        !            32: POINTER secondBlock;                                        /* second block */
        !            33: unsigned int len;                                       /* length of blocks */
        !            34: {
        !            35:   if (len)
        !            36:     return (memcmp (firstBlock, secondBlock, len));
        !            37:   else
        !            38:     return (0);
        !            39: }

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.