Assignments Assignments

Macros
jinclude.h File Reference
`#include "jconfig.h"`
`#include <stddef.h>`
`#include <stdlib.h>`
`#include <stdio.h>`
`#include <string.h>`

Go to the source code of this file.

## Macros
#define | JCONFIG_INCLUDED /* so that jpeglib.h doesn't do it again */
#define | MEMZERO(target, size) memset((void *)(target), 0, (size_t)(size))
#define | MEMCOPY(dest, src, size) memcpy((void *)(dest), (const void *)(src), (size_t)(size))
#define | SIZEOF(object) ((size_t) sizeof(object))
#define | JFREAD(file, buf, sizeofbuf) ((size_t) fread((void *) (buf), (size_t) 1, (size_t) (sizeofbuf), (file)))
#define | JFWRITE(file, buf, sizeofbuf) ((size_t) fwrite((const void *) (buf), (size_t) 1, (size_t) (sizeofbuf), (file)))

## Macro Definition Documentation

## ◆ JCONFIG_INCLUDED

#define JCONFIG_INCLUDED /* so that jpeglib.h doesn't do it again */

## ◆ JFREAD

#define JFREAD | ( |  | file,
|  |  | buf,
|  |  | sizeofbuf ) ((size_t) fread((void *) (buf), (size_t) 1, (size_t) (sizeofbuf), (file)))

## ◆ JFWRITE

#define JFWRITE | ( |  | file,
|  |  | buf,
|  |  | sizeofbuf ) ((size_t) fwrite((const void *) (buf), (size_t) 1, (size_t) (sizeofbuf), (file)))

## ◆ MEMCOPY

#define MEMCOPY | ( |  | dest,
|  |  | src,
|  |  | size ) memcpy((void *)(dest), (const void *)(src), (size_t)(size))

## ◆ MEMZERO

#define MEMZERO | ( |  | target,
|  |  | size ) memset((void *)(target), 0, (size_t)(size))

## ◆ SIZEOF

#define SIZEOF | ( |  | object | ) | ((size_t) sizeof(object))