--- rpl/src/compilation.c 2010/03/09 10:18:42 1.6 +++ rpl/src/compilation.c 2010/07/14 14:19:33 1.13 @@ -1,6 +1,6 @@ /* ================================================================================ - RPL/2 (R) version 4.0.13 + RPL/2 (R) version 4.0.18 Copyright (C) 1989-2010 Dr. BERTRAND Joël This file is part of RPL/2. @@ -1686,6 +1686,35 @@ conversion_majuscule(unsigned char *chai return(chaine_convertie); } +void +conversion_majuscule_limitee(unsigned char *chaine_entree, + unsigned char *chaine_sortie, unsigned long longueur) +{ + unsigned long i; + + for(i = 0; i < longueur; i++) + { + if (isalpha((*chaine_entree))) + { + (*chaine_sortie) = (unsigned char) toupper((*chaine_entree)); + } + else + { + (*chaine_sortie) = (*chaine_entree); + } + + if ((*chaine_entree) == d_code_fin_chaine) + { + break; + } + + chaine_entree++; + chaine_sortie++; + } + + return; +} + /* ================================================================================