GRASS Programmer's Manual  6.5.svn(2014)-r66266
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
get_datum_name.c File Reference
#include <string.h>
#include <unistd.h>
#include <stdlib.h>
#include <grass/gis.h>
#include <grass/glocale.h>
Include dependency graph for get_datum_name.c:

Go to the source code of this file.


int G_ask_datum_name (char *datumname, char *ellpsname)
 ask for a valid datum name More...

Function Documentation

int G_ask_datum_name ( char *  datumname,
char *  ellpsname 

ask for a valid datum name

This function asks the user interactively for a valid datum name from the datum table. The datum name is stored in the character array pointed to by datum. The function returns 1 on sucess, -1 if no datum was entered on command line and 0 on internal error.


Definition at line 43 of file get_datum_name.c.

References buff, fclose(), G_ask_ellipse_name(), G_convert_dirseps_to_host(), G_datum_description(), G_datum_ellipsoid(), G_datum_name(), G_free(), G_get_datum_by_name(), G_gets(), G_strcasecmp(), G_strip(), G_system(), G_tempfile(), G_warning(), getenv(), NULL, and sprintf().