FOSSology  4.4.0
Open Source License Compliance by Open Source Software
encode.c File Reference

Simple utility program for escaping C strings for inclusion in code. More...

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
Include dependency graph for encode.c:

Go to the source code of this file.

Macros

#define myBUFSIZ   BUFSIZ
 

Functions

int main (int argc, char **argv)
 

Detailed Description

Simple utility program for escaping C strings for inclusion in code.

Reads the first line of a given file and then outputs (to stdout) text suitable for initializing an licSpec_t structure. Used by GENSEARCHDATA script for processing STRINGS.in.

Definition in file encode.c.

Macro Definition Documentation

◆ myBUFSIZ

#define myBUFSIZ   BUFSIZ

Buffer size to use

Definition at line 20 of file encode.c.

Function Documentation

◆ main()

int main ( int  argc,
char **  argv 
)

Open the file (or stdin)

read the first line and remove any trailing newline.

Definition at line 23 of file encode.c.