Similar functions in unix


 
Thread Tools Search this Thread
Top Forums Programming Similar functions in unix
# 1  
Old 02-13-2009
Similar functions in unix

Hi,

I am windows programer. I have very basic knowledge of Unix OS.

I have written an application in Windows which consists of Win32 API namely WideCharToMultiByte(..) and MultiByteToWideChar(..).
I am interested to deploy my application in unix platform henceforth I need to know IS there any functions of unix supported libraries consisting of similar to WideCharToMultiByte(..) and MultiByteToWideChar(..). which can run on unix.

Could you Please let me know the similar functions of above mentioned functions?

Regards,
Dayakar
# 2  
Old 02-14-2009
Try functions like 'mbtowc' that are C99 conformant or 'iconv' (POSIX).
Former need correct setting of LC_CTYPE, latter also needs to specify conversion details.

In my case, when I obtained working code with them, I decided to write
my own code for wchar_t / UTF-8 conversion.
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

How to compare two files in UNIX using similar to vlookup?

Hi, I want to compare same column in two files, if values match then display the column or display "NA". Ex : File 1 : 123 abc xyz pqr File 2: 122 aab fdf pqr fff qqq rrr (1 Reply)
Discussion started by: hkoshekay
1 Replies

2. What is on Your Mind?

Similar Threads Redesign for UNIX.com

Hello. I have redesigned our "similar threads" for a more "clean style" in both the desktop view and the mobile view for the forum "show thread". The new design is a simple straight-forward use of div elements and all the legacy table elements have been removed. The result is a "clean"... (7 Replies)
Discussion started by: Neo
7 Replies

3. Shell Programming and Scripting

How to execute functions or initiate functions as command line parameters for below requirement?

I have 7 functions those need to be executed as command line inputs, I tried with below code it’s not executing function. If I run the ./script 2 then fun2 should execute , how to initiate that function I tried case and if else also, how to initiate function from command line if then... (8 Replies)
Discussion started by: saku
8 Replies

4. Shell Programming and Scripting

Counting similar lines from file UNIX

I have a file which contains data as below: nbk1j7o pageName=/jsp/RMBS/RMBSHome.jsf nbk1j7o pageName=/jsp/RMBS/RMBSHome.jsf nbk1j7o pageName=/jsp/RMBS/RMBSHome.jsf nbk1j7o pageName=/jsp/RMBS/RMBSHome.jsf nbk1j7o pageName=/jsp/common/index.jsf nbk1j7o pageName=/jsp/common/index.jsf nbk1wqe... (6 Replies)
Discussion started by: mohsin.quazi
6 Replies

5. Shell Programming and Scripting

Recursive functions in Unix

Hi Guys, Is there a way to write a recursive function in unix? Thanks for your help in advance, Regards, Magesh. (1 Reply)
Discussion started by: mac4rfree
1 Replies

6. UNIX for Dummies Questions & Answers

unix functions

Hi All, i have two functions in my script. question() { num=`ps -e | grep ps | awk -F" " '{print $1}'` qno=`expr $num % 10` grade=grade1 cat grade1/$qno answer ${grade} ${qno} } answer() { grade=$1 qno=$2 ansno=`wc -l $grade/ans/$qno | cut -d' ' -f1` j=0 while do (1 Reply)
Discussion started by: Usha Shastri
1 Replies

7. Programming

Standard UNIX functions

Hi everybody, first of all i apologize if my thread's title doesn't make much sense,but i coudn't find a more appropriate name :) Then i apologize about my question,which probably will sound trivial for you :) :) I am working on a program which is being tested in Linux but the final target is... (2 Replies)
Discussion started by: Zipi
2 Replies

8. UNIX for Dummies Questions & Answers

I need a Unix OS similar to HP-UX

Hi, I am trying to quickly learn Unix because I am going to be using HP-UX soon. Problem is I can't find download HP-UX. Does anyone know a Unix OS I can download that is more like HP-UX? I'm running windows vista at the moment. (3 Replies)
Discussion started by: budz
3 Replies

9. Cybersecurity

Would need a friend on the net, someone who knows a lot of UNIX or similar...

Hi! I'm fully aware of that this is not a chat forum, at least it's not what it's intended to be, but i do not find any better way of dealing with my problem... I'm using, well at least right now, a text based webbrowser, the LYNX actually, for the first time, works pretty well... Would like... (0 Replies)
Discussion started by: zeus
0 Replies
Login or Register to Ask a Question