LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-28-2008, 04:49 AM   #1
unni krishnan
LQ Newbie
 
Registered: Feb 2008
Posts: 2

Rep: Reputation: 0
Post Problem with strrev() functions


I have certain problems while using string functions like strcat(), strrev() etc & also while using gets(), getchar() functions during C programming under RH Enterprise Linux.
What are the header files to include ?
Command line for compilation ?
 
Old 02-28-2008, 11:28 PM   #2
theNbomr
LQ 5k Club
 
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,398
Blog Entries: 2

Rep: Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908
For string functions like strrev(), strcat(), etc. include <string.h>
For standard IO functions, include <stdio.h>
You can find this easily from the manpage for each function.
For the easiest compilation if you are using only standard C libraries, try
Code:
make baseFileName
This would know what to do to make 'filename.c' into the executable 'filename'. If you want to do it the harder way:
Code:
cc -o fileName fileName.c
Usually, cc is an alias to gcc.
man gcc, & man ld for the gory details.

--- rod.
 
  


Reply


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
LXer: OpenOffice.org Calc functions, part 1: Understanding functions LXer Syndicated Linux News 0 03-31-2007 01:01 PM
problem with linking between functions ams Programming 6 03-01-2005 12:08 PM
Arrays of Functions and Classes problem. (C++) -=zAe=- Programming 2 02-24-2005 11:21 AM
pointers to functions/member functions champ Programming 2 03-28-2003 07:22 PM
Problem in C: arrays, functions and strings OrganicX Programming 15 03-18-2003 10:31 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:24 AM.

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