/*-------------------------------------------------------------------------*/ /** @file expkey.c @author N. Devillard @date Feb 2001 @version $Revisions$ @brief Expand keyword from shortFITS to HIERARCH notation This module offers a function that is reused in a number of different places. */ /*--------------------------------------------------------------------------*/ /* $Id: expkey.c,v 1.4 2002/01/10 08:53:08 ndevilla Exp $ $Author: ndevilla $ $Date: 2002/01/10 08:53:08 $ $Revision: 1.4 $ */ /*--------------------------------------------------------------------------- Includes ---------------------------------------------------------------------------*/ #include #include #include #include #include "static_sz.h" /*--------------------------------------------------------------------------- Function codes ---------------------------------------------------------------------------*/ /* Static: uppercase a string */ static char * expkey_strupc(char * s) { static char l[ASCIILINESZ+1]; int i ; if (s==NULL) return NULL ; memset(l, 0, ASCIILINESZ+1); i=0 ; while (s[i] && i