![]() |
|
#1
|
|||
|
|||
toupper does not work in xcode 3.1.2Please excuse me if this question has been asked before,i did search first.
under Dev cpp in a C program ,using name=toupper(name); works fine on a PC. on a Mac using 10.5.7 and xcode 3.2.1 it throws "passing argument 1 of 'toupper' makes integer from pointer without a cast" errors. Apples man pages are not much help at all( surprise surprise). anyone have any idea what i am doing wrong? CPP / C++ / C Code:
|
|||
|
#2
|
|||
|
|||
Re: toupper does not work in xcode 3.1.2You are passing an array of characters to toupper instead of an int. Consider the following:
CPP / C++ / C Code:
Quote:
toupper only works on a single character at a time, not on an array of them. I'm not sure what PC you used to get this to work, but it should at least have complained with a warning... __________________
My personal site: Utilities for text processing, debugging, testing and plotting |
|
#3
|
|||
|
|||
Re: toupper does not work in xcode 3.1.2Ah, that would explain it!
Thank you very much. I am using windows XP with Dev cpp 4.9.9.2 . its not a very flash ide Is there a way to take a multiple character string and change it to uppercase? |
|
#4
|
||||
|
||||
Re: toupper does not work in xcode 3.1.2Quote:
Yes, one character at a time! CPP / C++ / C Code:
Output: Code:
MxB |
Recent GIDBlog
Accepted for Ph.D. program by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Work at home. English proofreader needed. $14.50/hour | cascade_soft | Member Announcements, Advertisements & Offers | 0 | 05-Jun-2006 01:29 |
| Random access files | Krazy_yA | C Programming Language | 6 | 07-May-2006 02:44 |
| Getting .htaccess files to work | Krak | Apache Web Server Forum | 0 | 23-Sep-2005 12:39 |
| Programming C with Xcode...plz help | tahum | C Programming Language | 4 | 07-Mar-2005 11:57 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The