Review your favorite Linux distribution.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 01-05-2006, 07:12 PM   #1
LQ Newbie
Registered: Dec 2005
Posts: 21

Rep: Reputation: 15
pass a string to a named pipe

If i want to pass a string into pipe what shall i do?
ex: i want to say
char e[10];
e="No user found" //I am not at all sure how to do this
Old 01-05-2006, 07:52 PM   #2
Senior Member
Registered: Nov 2005
Location: Hanoi
Distribution: Fedora 13, Ubuntu 10.04
Posts: 2,379

Rep: Reputation: 148Reputation: 148

char e[]="No user found";
The compiler will then make sure that the array is defined with the right number of elements. (which is 14 - more than the 10 you had declared)



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
syslog not opening named pipe. fluxrad Linux - Software 5 02-10-2009 05:31 AM
Planning to change root pass and oracle system pass sathyguy Red Hat 1 12-20-2005 09:53 PM
Transphering files over a remote named pipe breik Linux - Networking 1 10-02-2005 01:10 PM
connecting two vm machine via named pipe ? cyu021 Linux - Software 2 03-21-2005 07:01 PM
binutils 1 pass :: broken pipe (?) jayprakash Linux From Scratch 2 02-14-2005 05:21 PM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 11:22 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration