From c16a62d8a84180bb953045b71afcd5d1b3a204d1 Mon Sep 17 00:00:00 2001 From: Steve Morley Date: Fri, 20 Sep 2024 13:58:12 -0600 Subject: [PATCH] move Lgm_StrToUppper and Lgm_StrToLower to Lgm_Misc Other string handling is already in Lgm_Misc, so this is a logical grouping. --- libLanlGeoMag/Lgm/Lgm_CTrans.h | 2 -- libLanlGeoMag/Lgm/Lgm_Misc.h | 2 ++ libLanlGeoMag/Lgm_CTrans.c | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/libLanlGeoMag/Lgm/Lgm_CTrans.h b/libLanlGeoMag/Lgm/Lgm_CTrans.h index e513f356..e0ada3ec 100644 --- a/libLanlGeoMag/Lgm/Lgm_CTrans.h +++ b/libLanlGeoMag/Lgm/Lgm_CTrans.h @@ -855,8 +855,6 @@ void Lgm_GEOD_to_WGS84( double GeodLat, double GeodLong, double GeodHiegh void Lgm_Nutation( double T_TT, double nTerms, double *dPSi, double *dEps ); int IsoTimeStringToDateTime( char *TimeString, Lgm_DateTime *d, Lgm_CTrans *c ); int MonthStrToNum( char *str ); -char *Lgm_StrToLower( char *str, int nmax ); -char *Lgm_StrToUpper( char *str, int nmax ); /* * Leap Second Related Routines diff --git a/libLanlGeoMag/Lgm/Lgm_Misc.h b/libLanlGeoMag/Lgm/Lgm_Misc.h index 1710b15c..ae1f0894 100644 --- a/libLanlGeoMag/Lgm/Lgm_Misc.h +++ b/libLanlGeoMag/Lgm/Lgm_Misc.h @@ -8,5 +8,7 @@ void Lgm_ReplaceSubString2( char **OutStr, char *OrigStr, char *SubStr, char *RepStr ); void Lgm_ReplaceSubString( char *OutStr, char *OrigStr, char *SubStr, char *RepStr ); +char *Lgm_StrToLower( char *str, int nmax ); +char *Lgm_StrToUpper( char *str, int nmax ); #endif diff --git a/libLanlGeoMag/Lgm_CTrans.c b/libLanlGeoMag/Lgm_CTrans.c index f5857baf..5bd3f28b 100644 --- a/libLanlGeoMag/Lgm_CTrans.c +++ b/libLanlGeoMag/Lgm_CTrans.c @@ -58,6 +58,7 @@ */ #include "Lgm/Lgm_CTrans.h" #include "Lgm/Lgm_Quat.h" +#include "Lgm/Lgm_Misc.h" #include "config.h" #include