Sponsored Content
Top Forums Programming Question about compiling (noob) Post 302098385 by ramesh.jella on Sunday 3rd of December 2006 11:37:56 PM
Old 12-04-2006
do this

hi arya
you have to know that it may not have space before stdio.h
just gothrough your code

#include <stdio.h>

void main()
{
printf("\nHello World\n");
}

do this
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Noob sorting question

Ok here is the deal, I have a command given to me by some systems guy who I cannot get ahold of on the weekend without paying him alot of money to help me. I need to get this done before Monday as I am just getting pummeled by DOS attacks. The comand given was.... netstat -ntu | awk '{print... (1 Reply)
Discussion started by: Hexabah
1 Replies

2. UNIX for Dummies Questions & Answers

Noob question on comparing #'s.

I have a file with 3 digit numbers in it formatted as such: 123 065 321 How would I go about seeing if each number is less than 100 and if so outputting it to another file Yes, I am a bit of a noob. I have tried with grep but I don't think it'll work. Any general direction would be... (6 Replies)
Discussion started by: kirkm76
6 Replies

3. Shell Programming and Scripting

noob question about redirecting stderr

I dont know what I am doing wrong but I would like to redirect the stderr output to a file? the specific command is this time wget http://www.something.com/somefile.bin All I want to see is time's output which is stderr so I can see how long the file download took. I've tried redirecting... (2 Replies)
Discussion started by: trey85stang
2 Replies

4. BSD

Complete noob question: Software installation

I'm a Linux guy who is tring out BSD for the first time... What is the BSD program to automatically fetch and and install software? Is it pkg_add? Will pkg_add automatically fetch and and install software? Does it work on all BSD variants? This is all I could find, but I wanted to make... (5 Replies)
Discussion started by: biznatch
5 Replies

5. Ubuntu

Simple Noob Question

I am editing the squid.confi on my server. I am done editing. How do I exit the confi file? Thank you. (2 Replies)
Discussion started by: sethartha
2 Replies

6. UNIX for Dummies Questions & Answers

Noob question about parsing a website

I'm trying to parse the website, finance.yahoo.com/q?s=ge&ql=1, and retrieve the info between <span id="yfs_l84_ge">18.98</span>, so 18.98. What would be the best way to go about this in a bash script? Any help or suggestions will be much appreciated. Thanks! (2 Replies)
Discussion started by: mayson
2 Replies

7. UNIX for Dummies Questions & Answers

perl array filling *NOOB question*

First time poster here and I'm pretty much a total noob with UNIX and Perl. So please bear with me. With Perl, I'm trying to fill an array with data that is in a CSV file. I would like to fill the array with only one of the columns in the CSV file. I have a file called data.csv: ... (2 Replies)
Discussion started by: WongSifu
2 Replies

8. UNIX Desktop Questions & Answers

Question about a VIM script from a absolute noob

What is this script meant to do? How do I make it executable and how do i run it? I am trying to understand what the script is doing and how it is doing it... need a little advice. Here is is.. if then list=`w | grep $user | cut -c19-30` if then echo "The user $user is... (2 Replies)
Discussion started by: DanableLector
2 Replies

9. Shell Programming and Scripting

For loop -- noob question

Hello, I am new to shell scripting and i am trying to figure why is this not working with else statement. I am searching for every directory in that DIR i am in, however the "else" seems to be triggered whenever the run the script.. Much thanks in advance! #!/bin/shell for item in... (3 Replies)
Discussion started by: Reb0rn
3 Replies

10. Shell Programming and Scripting

Noob Expect Scripting Question

I'm having some difficulty with convincing Expect to do what I need.. I have a loop that waits for input, a specific phrase of text followed by a single word. I need Expect to capture that word following the specific phrase. It should then store the word in a variable. I'm fairly sure it's... (6 Replies)
Discussion started by: LongLeafTea
6 Replies
flockfile(3)						     Library Functions Manual						      flockfile(3)

NAME
flockfile, ftrylockfile, funlockfile - stdio locking functions LIBRARY
Standard C Library (libc.a) SYNOPSIS
#include <stdio.h> void flockfile( FILE * file); int ftrylockfile( FILE * file); void funlockfile( FILE * file); STANDARDS
Interfaces documented on this reference page conform to industry standards as follows: flockfile, funlockfile: POSIX.1c, XSH5.0 ftrylockfile: XSH5.0 Refer to the standards(5) reference page for more information about industry standards and associated tags. PARAMETERS
Specifies the stream to be locked. DESCRIPTION
The flockfile(), ftrylockfile, and funlockfile functions provide for explicit application-level locking of stdio (FILE*) objects. These functions can be used by a thread to delineate a sequence of I/O statements that are to be executed as a unit. The flockfile() function locks a stdio stream so that a thread can have exclusive use of that stream for multiple I/O operations. Use the flockfile() function for a thread that wishes to ensure that the output of several printf() functions, for example, is not garbled by another thread also trying to use printf(). The ftrylockfile() function is used by a thread to acquire ownership of a stdio (FILE*) object if the object is available. The ftrylock- file() function is a non-blocking version of flockfile(). The funlockfile() function unlocks a stdio stream, causing the thread that had been holding the lock to relinquish exclusive use of the stream. The behavior of the flockfile() and funlockfile() functions is unspecified if the file parameter does not point to a valid FILE structure. The behavior of funlockfile() is also unspecified if a thread other than the current owner calls funlockfile(). Matching flockfile() and funlockfile() calls can be nested. If the stream has been locked recursively, it will remain locked until the last matching funlockfile() is called. RETURN VALUE
None for flockfile() and funlockfile(). The ftrylockfile() function returns zero for success and non-zero to indicate that the lock cannot be acquired. RELATED INFORMATION
Functions: getc_unlocked(3), putc_unlocked(3) delim off flockfile(3)
All times are GMT -4. The time now is 09:08 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy