source: trunk/third/moira/util/rsaref/r_stdlib.c @ 23095

Revision 23095, 1.2 KB checked in by ghudson, 16 years ago (diff)
Import the moira package from SIPB Debathena.
RevLine 
[23095]1/* R_STDLIB.C - platform-specific C library routines for RSAREF
2 */
3
4/* Copyright (C) RSA Laboratories, a division of RSA Data Security,
5     Inc., created 1991. All rights reserved.
6 */
7
8#include <string.h>
9#include "global.h"
10#include "rsaref.h"
11
12void R_memset (output, value, len)
13POINTER output;                                             /* output block */
14int value;                                                         /* value */
15unsigned int len;                                        /* length of block */
16{
17  if (len)
18    memset (output, value, len);
19}
20
21void R_memcpy (output, input, len)
22POINTER output;                                             /* output block */
23POINTER input;                                               /* input block */
24unsigned int len;                                       /* length of blocks */
25{
26  if (len)
27    memcpy (output, input, len);
28}
29
30int R_memcmp (firstBlock, secondBlock, len)
31POINTER firstBlock;                                          /* first block */
32POINTER secondBlock;                                        /* second block */
33unsigned int len;                                       /* length of blocks */
34{
35  if (len)
36    return (memcmp (firstBlock, secondBlock, len));
37  else
38    return (0);
39}
Note: See TracBrowser for help on using the repository browser.