Home My Page Projects Code Snippets Project Openings SML/NJ
Summary Activity Forums Tracker Lists Tasks Docs Surveys News SCM Files

SCM Repository

[smlnj] View of /sml/trunk/src/runtime/c-libs/smlnj-ccalls/cutil.c
ViewVC logotype

View of /sml/trunk/src/runtime/c-libs/smlnj-ccalls/cutil.c

Parent Directory Parent Directory | Revision Log Revision Log

Revision 2 - (download) (as text) (annotate)
Sat Oct 4 23:33:09 1997 UTC (23 years, 1 month ago) by monnier
File size: 467 byte(s)
Initial revision
/* cutil.c
 * COPYRIGHT (c) 1995 by AT&T Bell Laboratories.
 * Some useful user-level C functions.
 * Declared and registered on the C side by cutil-cfuns.h

char *ptos(void *p)
    printf("in ptos with string \"%s\"",(char *)p);
    return (char *) p;

int ptoi(int *p)
    int i;

    /* p may not be pointing to an aligned int, hence the memcpy */
    memcpy (&i, p, sizeof(int));
    return i;

/* end of cutil.c */

ViewVC Help
Powered by ViewVC 1.0.0