Coverage Report

Created: 2025-06-09 08:44

/src/gdal/frmts/pcraster/libcsf/putx0.c
Line
Count
Source (jump to first uncovered line)
1
#include "csf.h"
2
#include "csfimpl.h"
3
4
5
/* change the x value of upper left co-ordinate
6
 * RputXUL changes the x value of upper left co-ordinate.
7
 * returns the new x value of upper left co-ordinate or 0
8
 * case of an error.
9
 *
10
 * Merrno
11
 * NOACCESS
12
 */
13
REAL8 RputXUL(
14
  MAP *map, /* map handle */
15
  REAL8 xUL) /* new x value of top left co-ordinate */
16
0
{
17
0
  CHECKHANDLE_GOTO(map, error);
18
0
  if(! WRITE_ENABLE(map))
19
0
  {
20
0
    M_ERROR(NOACCESS);
21
0
    goto error;
22
0
  }
23
0
  map->raster.xUL = xUL;
24
0
  return(xUL);
25
0
error:  return(0);
26
0
}