Skip to content

Commit

Permalink
Added C headers to examples
Browse files Browse the repository at this point in the history
  • Loading branch information
Dana Robinson committed Feb 13, 2024
1 parent cb3f308 commit 7fdceb8
Show file tree
Hide file tree
Showing 45 changed files with 99 additions and 0 deletions.
3 changes: 3 additions & 0 deletions HDF4Examples/C/AN/h4ex_AN_create_annotation.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
#include <stdio.h>
#include <string.h>

#include "hdf.h"

#define FILE_NAME "h4ex_AN_create_annotation.hdf"
Expand Down
3 changes: 3 additions & 0 deletions HDF4Examples/C/AN/h4ex_AN_get_annotation_info.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
#include <stdio.h>
#include <stdlib.h>

#include "hdf.h"

#define FILE_NAME "General_HDFobjects.hdf"
Expand Down
3 changes: 3 additions & 0 deletions HDF4Examples/C/AN/h4ex_AN_read_annotation.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
#include <stdio.h>
#include <stdlib.h>

#include "hdf.h"

#define FILE_NAME "General_HDFobjects.hdf"
Expand Down
2 changes: 2 additions & 0 deletions HDF4Examples/C/GR/GR_read_chunks.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#include <stdio.h>

#include "hdf.h"

#define FILE_NAME "Image_Chunked.hdf"
Expand Down
2 changes: 2 additions & 0 deletions HDF4Examples/C/GR/GR_write_chunks.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#include <stdio.h>

#include "hdf.h"

#define FILE_NAME "Image_Chunked.hdf"
Expand Down
3 changes: 3 additions & 0 deletions HDF4Examples/C/GR/h4ex_GR_create_and_write_chunked_image.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
#include <stdio.h>

#include "hdf.h"

#define FILE_NAME "h4ex_GR_create_and_write_chunked_image.hdf"
#define IMAGE_NAME "gzip_comp_data"
#define X_LENGTH 6 /* number of rows in the image */
Expand Down
2 changes: 2 additions & 0 deletions HDF4Examples/C/GR/h4ex_GR_create_and_write_image.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#include <stdio.h>

#include "hdf.h"

#define FILE_NAME "h4ex_GR_create_and_write_image.hdf"
Expand Down
3 changes: 3 additions & 0 deletions HDF4Examples/C/GR/h4ex_GR_get_attribute.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
#include <stdio.h>
#include <stdlib.h>

#include "hdf.h"

#define FILE_NAME "General_RImages.hdf"
Expand Down
2 changes: 2 additions & 0 deletions HDF4Examples/C/GR/h4ex_GR_image_info.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#include <stdio.h>

#include "hdf.h"

#define FILE_NAME "General_RImages3.hdf"
Expand Down
2 changes: 2 additions & 0 deletions HDF4Examples/C/GR/h4ex_GR_modify_image.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#include <stdio.h>

#include "hdf.h"

#define FILE_NAME "General_RImages2.hdf"
Expand Down
2 changes: 2 additions & 0 deletions HDF4Examples/C/GR/h4ex_GR_read_image.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#include <stdio.h>

#include "hdf.h"

#define FILE_NAME "General_RImages.hdf"
Expand Down
2 changes: 2 additions & 0 deletions HDF4Examples/C/GR/h4ex_GR_read_palette.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#include <stdio.h>

#include "hdf.h"

#define FILE_NAME "Image_with_Palette.hdf"
Expand Down
2 changes: 2 additions & 0 deletions HDF4Examples/C/GR/h4ex_GR_set_attribute.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#include <stdio.h>

#include "hdf.h"

#define FILE_NAME "General_RImages4.hdf"
Expand Down
2 changes: 2 additions & 0 deletions HDF4Examples/C/GR/h4ex_GR_write_palette.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#include <stdio.h>

#include "hdf.h"

#define FILE_NAME "h4ex_GR_write_palette.hdf"
Expand Down
2 changes: 2 additions & 0 deletions HDF4Examples/C/SD/h4ex_SD_alter_sds_values.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#include <stdio.h>

#include "mfhdf.h"

#define FILE_NAME "SDS.hdf"
Expand Down
2 changes: 2 additions & 0 deletions HDF4Examples/C/SD/h4ex_SD_compress_sds.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#include <stdio.h>

#include "mfhdf.h"

#define FILE_NAME "SDScompressed.hdf"
Expand Down
2 changes: 2 additions & 0 deletions HDF4Examples/C/SD/h4ex_SD_create_sds.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#include <stdio.h>

#include "mfhdf.h"

#define FILE_NAME "SDS.hdf"
Expand Down
2 changes: 2 additions & 0 deletions HDF4Examples/C/SD/h4ex_SD_dimscale_vs_sds.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#include <stdio.h>

#include "mfhdf.h"

#define FILE_NAME "SDS.hdf"
Expand Down
2 changes: 2 additions & 0 deletions HDF4Examples/C/SD/h4ex_SD_find_sds_by_name.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#include <stdio.h>

#include "mfhdf.h"

#define FILE_NAME "SDS.hdf"
Expand Down
3 changes: 3 additions & 0 deletions HDF4Examples/C/SD/h4ex_SD_get_attr.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
#include <stdio.h>
#include <stdlib.h>

#include "mfhdf.h"

#define FILE_NAME "SDS.hdf"
Expand Down
2 changes: 2 additions & 0 deletions HDF4Examples/C/SD/h4ex_SD_get_info.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#include <stdio.h>

#include "mfhdf.h"

#define FILE_NAME "SDS.hdf"
Expand Down
2 changes: 2 additions & 0 deletions HDF4Examples/C/SD/h4ex_SD_mv_sds_to_external.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#include <stdio.h>

#include "mfhdf.h"

#define FILE_NAME "SDS.hdf"
Expand Down
2 changes: 2 additions & 0 deletions HDF4Examples/C/SD/h4ex_SD_read_from_sds.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#include <stdio.h>

#include "mfhdf.h"

#define FILE_NAME "SDS.hdf"
Expand Down
2 changes: 2 additions & 0 deletions HDF4Examples/C/SD/h4ex_SD_read_subsets.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#include <stdio.h>

#include "mfhdf.h"

#define FILE_NAME "SDS.hdf"
Expand Down
2 changes: 2 additions & 0 deletions HDF4Examples/C/SD/h4ex_SD_set_attr.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#include <stdio.h>

#include "mfhdf.h"

#define FILE_NAME "SDS.hdf"
Expand Down
2 changes: 2 additions & 0 deletions HDF4Examples/C/SD/h4ex_SD_set_get_dim_info.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#include <stdio.h>

#include "mfhdf.h"

#define FILE_NAME "SDS.hdf"
Expand Down
2 changes: 2 additions & 0 deletions HDF4Examples/C/SD/h4ex_SD_unlimited_sds.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#include <stdio.h>

#include "mfhdf.h"

#define FILE_NAME "SDSUNLIMITED.hdf"
Expand Down
2 changes: 2 additions & 0 deletions HDF4Examples/C/SD/h4ex_SD_write_slab.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#include <stdio.h>

#include "mfhdf.h"

#define FILE_NAME "SLABS.hdf"
Expand Down
2 changes: 2 additions & 0 deletions HDF4Examples/C/SD/h4ex_SD_write_to_sds.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#include <stdio.h>

#include "mfhdf.h"

#define FILE_NAME "SDS.hdf"
Expand Down
2 changes: 2 additions & 0 deletions HDF4Examples/C/VD/h4ex_VD_create_onefield_vdatas.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#include <stdio.h>

#include "hdf.h"

#define FILE_NAME "h4ex_VD_create_onefield_vdatas.hdf"
Expand Down
2 changes: 2 additions & 0 deletions HDF4Examples/C/VD/h4ex_VD_create_vdatas.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#include <stdio.h>

#include "hdf.h"

#define FILE1_NAME "h4ex_VD_create_vdatas.hdf"
Expand Down
2 changes: 2 additions & 0 deletions HDF4Examples/C/VD/h4ex_VD_get_vdata_info.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#include <stdio.h>

#include "hdf.h"

#define FILE_NAME "General_Vdatas.hdf"
Expand Down
2 changes: 2 additions & 0 deletions HDF4Examples/C/VD/h4ex_VD_locate_vdata.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#include <stdio.h>

#include "hdf.h"

#define FILE_NAME "General_Vdatas.hdf"
Expand Down
3 changes: 3 additions & 0 deletions HDF4Examples/C/VD/h4ex_VD_read_from_vdata.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
#include <stdio.h>
#include <stdlib.h>

#include "hdf.h"

#define FILE_NAME "General_Vdatas.hdf"
Expand Down
2 changes: 2 additions & 0 deletions HDF4Examples/C/VD/h4ex_VD_read_mixed_vdata.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#include <stdio.h>

#include "hdf.h"

#define N_RECORDS 20 /* number of records to be read */
Expand Down
2 changes: 2 additions & 0 deletions HDF4Examples/C/VD/h4ex_VD_set_get_vdata_attr.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#include <stdio.h>

#include "hdf.h"

#define FILE_NAME "General_Vdatas2.hdf"
Expand Down
2 changes: 2 additions & 0 deletions HDF4Examples/C/VD/h4ex_VD_write_mixed_vdata.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#include <stdio.h>

#include "hdf.h"

#define FILE_NAME "h4ex_VD_write_mixed_vdata.hdf"
Expand Down
2 changes: 2 additions & 0 deletions HDF4Examples/C/VD/h4ex_VD_write_mixed_vdata_struct.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ N_RECORDS. This difference is the result of using an array of
structs in this example to hold the field values instead of
individual arrays as in Example 4. */

#include <stdio.h>

#include "hdf.h"

#define FILE_NAME "h4ex_VD_write_mixed_vdata_struct.hdf"
Expand Down
2 changes: 2 additions & 0 deletions HDF4Examples/C/VD/h4ex_VD_write_to_vdata.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#include <stdio.h>

#include "hdf.h"

#define FILE_NAME "General_Vdatas3.hdf"
Expand Down
2 changes: 2 additions & 0 deletions HDF4Examples/C/VG/h4ex_VG_add_sds_to_vgroup.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#include <stdio.h>

#include "hdf.h" /* Note: in this example, hdf.h can be omitted...*/
#include "mfhdf.h" /* ...since mfhdf.h already includes hdf.h */

Expand Down
2 changes: 2 additions & 0 deletions HDF4Examples/C/VG/h4ex_VG_create_vgroup.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#include <stdio.h>

#include "hdf.h"

#define FILE_NAME "h4ex_VG_create_vgroup.hdf"
Expand Down
3 changes: 3 additions & 0 deletions HDF4Examples/C/VG/h4ex_VG_get_vgroup_info.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
#include <stdio.h>
#include <stdlib.h>

#include "hdf.h"

#define FILE_NAME "General_Vgroups.hdf"
Expand Down
2 changes: 2 additions & 0 deletions HDF4Examples/C/VG/h4ex_VG_insert_vdatas_to_vgroup.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#include <stdio.h>

#include "hdf.h"

#define FILE_NAME "General_Vgroups3.hdf"
Expand Down
2 changes: 2 additions & 0 deletions HDF4Examples/C/VG/h4ex_VG_set_get_vgroup_attr.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#include <stdio.h>

#include "hdf.h"

#define FILE_NAME "General_Vgroups2.hdf"
Expand Down
3 changes: 3 additions & 0 deletions HDF4Examples/C/VG/h4ex_VG_vgroup_contents.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
#include <stdio.h>
#include <stdlib.h>

#include "hdf.h"

#define FILE_NAME "General_Vgroups4.hdf"
Expand Down

0 comments on commit 7fdceb8

Please sign in to comment.