]>
git.proxmox.com Git - mirror_edk2.git/blob - Tools/CCode/Source/Pccts/h/charptr.c
4 * We reserve no LEGAL rights to the Purdue Compiler Construction Tool
5 * Set (PCCTS) -- PCCTS is in the public domain. An individual or
6 * company may do whatever they wish with source code distributed with
7 * PCCTS or the code generated by PCCTS, including the incorporation of
8 * PCCTS, or its output, into commerical software.
10 * We encourage users to develop software with PCCTS. However, we do ask
11 * that credit is given to us for developing PCCTS. By "credit",
12 * we mean that if you incorporate our source code into one of your
13 * programs (commercial product, research project, or otherwise) that you
14 * acknowledge this fact somewhere in the documentation, research report,
15 * etc... If you like PCCTS and have developed a nice tool with the
16 * output, please mention that you developed it using PCCTS. In
17 * addition, we ask that this header remain intact in our source code.
18 * As long as these guidelines are kept, we expect to continue enhancing
19 * this system and expect to make other tools available as they are
24 * Parr Research Corporation
25 * with Purdue University and AHPCRC, University of Minnesota
32 #include "pccts_stdlib.h"
36 #include "pccts_string.h"
38 /* 133MR1 include stdio.h for fprintf in charptr.c */
40 #include "pccts_stdio.h"
42 /* 133MR1 include charptr.h for Attrib in charptr.c */
47 zzcr_attr(Attrib
*a
,int token
,char *text
)
49 zzcr_attr(a
,token
,text
)
55 *a
= (char *) malloc(strlen(text
)+1); /* MR6 */
56 if ( *a
== NULL
) {fprintf(stderr
, "zzcr_attr: out of memory!\n"); exit(-1);}