By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
445,778 Members | 1,919 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 445,778 IT Pros & Developers. It's quick & easy.

Function to convert all of the small letters to the capital?

P: n/a
Ebi
Hi
I'm writing a project in C++ borland 5;
and I need a function that get a string or char* variable and convert
all of the small letters to the capital.
please help me.
--
Sincerely Yours
Ebrahim Khademi

Jul 23 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a

Ebi wrote:
Hi
I'm writing a project in C++ borland 5;
and I need a function that get a string or char* variable and convert
all of the small letters to the capital.
please help me.
--
Sincerely Yours
Ebrahim Khademi

use to toupper

Jul 23 '05 #2

P: n/a
Ebi wrote:

I'm writing a project in C++ borland 5;
and I need a function that get a string or char* variable
and convert all of the small letters to the capital. man toupper

TOUPPER(3) Linux Programmerís Manual TOUPPER(3)

NAME
toupper, tolower - convert letter to upper or lower case

SYNOPSIS
#include <ctype.h>

int toupper(int c);
int tolower(int c);

DESCRIPTION
toupper() converts the letter c to upper case, if possible.

tolower() converts the letter c to lower case, if possible.

If c is not an unsigned char value, or EOF,
the behaviour of these functions is undefined.
Jul 23 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.