/* *********************************************************************** * prompt for vector files (digit) * * char * * G_ask_vector_new(prompt, name)) * asks user to input name of a new vector file * * char * * G_ask_vector_old(prompt, name) * asks user to input name of an existing vector file * * char * * G_ask_vector_any(prompt, name) * asks user to input any vector name * * char * * G_ask_vector_in_mapset(prompt, name) * asks user to input name of an existing vector file * in current mapset * * parms: * char *prompt optional prompt for user * char *name buffer to hold name of map found * * returns: * char *pointer to a string with name of mapset * where file was found, or NULL if not found **********************************************************************/ #include /*! * \brief prompt for a new vector file * * Asks the user to enter a name for a vector file which does not * exist in the current mapset. * * \param prompt * \param name * \return char * */ char *G_ask_vector_new ( char *prompt, char *name) { return G_ask_new (prompt, name, "vector", "vector"); } /*! * \brief prompt for an existing vector file * * Asks the user to enter the name of an existing vector * file in any mapset in the database. * * \param prompt * \param name * \return char * */ char *G_ask_vector_old ( char *prompt, char *name) { return G_ask_old (prompt, name, "vector", "vector"); } char *G_ask_vector_any ( char *prompt, char *name) { return G_ask_any (prompt, name, "vector", "vector", 1); } /*! * \brief prompt for an existing vector file * * Asks the user to enter the name of an existing vector * file in the current mapset. * * \param prompt * \param name * \return char * */ char *G_ask_vector_in_mapset ( char *prompt, char *name) { return G_ask_in_mapset (prompt, name, "vector", "vector"); }