File: fitscore.c.patch

package info (click to toggle)
python-fitsio 1.1.4%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 884 kB
  • sloc: python: 5,350; ansic: 3,436; makefile: 8
file content (22 lines) | stat: -rw-r--r-- 636 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
--- cfitsio3470/fitscore.c	2018-03-01 10:28:51.000000000 -0600
+++ cfitsio3470/fitscore.c	2018-12-14 08:39:20.000000000 -0600
@@ -182,6 +182,19 @@

     return(*version);
 }
+
+/*
+   Return 1 if we are to treat strings per the FITS standard (not
+   replacing nulls with spaces, and not padding with spaces)
+*/
+int fits_use_standard_strings(void) {
+#ifdef FITS_USE_STANDARD_STRINGS
+    return 1;
+#else
+    return 0;
+#endif
+}
+
 /*--------------------------------------------------------------------------*/
 int ffflnm(fitsfile *fptr,    /* I - FITS file pointer  */
            char *filename,    /* O - name of the file   */