Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

read_allocate(3) [debian man page]

read_allocate(3)						  Staden Package						  read_allocate(3)

NAME
read_allocate, read_deallocate - Allocate and deallocate the Read structure. SYNOPSIS
#include <Read.h> Read *read_allocate( int num_points, int num_bases); void read_deallocate( Read *read); DESCRIPTION
These functions create and destroy Read structures. The Read structure is a generalised in-memory data structure used for holding trace data information. read_allocate() creates a Read structure large enough to hold num_points trace sample points and num_bases called bases. The allocated data is then initialised to appropriate defaults, which are mainly zeros and null pointers. read_deallocate() destroys a previously created Read structure. It is not sufficient to simply use the free() call instead. RETURN VALUES
On successful completion, the read_allocate() function returns a pointer to a Read structure. Otherwise this function returns a null pointer. The read_deallocate() function returns no value. SEE ALSO
read_reading(3), fread_reading(3), write_reading(3), fwrite_reading(3) read_allocate(3)

Check Out this Related Man Page

write_reading(3)						  Staden Package						  write_reading(3)

NAME
write_reading, fwrite_reading - Write a Read structure into a trace file. SYNOPSIS
#include <Read.h> int write_reading( char *filename, Read *read, int format); int fwrite_reading( FILE *fp, Read *read, int format); DESCRIPTION
These functions write a Read structure into a trace file. The principle format support is the SCF format. Although reading is supported for ABI and ALF, writing is not. Additionally, it is possible to write using the plain (old) staden format files or as Experiment files. In both these cases only the sequence component of the trace file will be written. When writing as an experiment file the QL, QR and SQ fields are generated from the Read structure. If we previously created the Read struc- ture from reading an experiment file then the original experiment file data is also written. Otherwise EN, ID, LN and LT lines are also generated. write_reading() writes a Read structure to the specified filename in the specified format. Formats available are TT_SCF, TT_PLNand TT_EXP. Specifying format TT_ANY will be treated as TT_SCF. fwrite_reading() writes a Read structure to the specified FILE pointer in the specified format. Apart from writing to FILE pointer instead of a filename, the function is identical to write_reading(). RETURN VALUES
On successful completion, the write_reading() and fwrite_reading() functions return 0. Otherwise these functions return -1. SEE ALSO
read_reading(3), fread_reading(3), deallocate_reading(3), scf(4), ExperimentFile(4) write_reading(3)
Man Page

14 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Read Command

i need to create a script that inputs information from another file using the read command. Sounds easy enough but i can't figure it out, can anyone help me? (2 Replies)
Discussion started by: Woodbird25
2 Replies

2. Shell Programming and Scripting

Read from data file

Hi, I have a data file formatted like this: Ex: Mike 3434 Jack 481 Peter 12 Alan 926 I want to get this data into 2 variables: "Names" and "Numbers" that I can using one "for" loop to get the value as Names and Numbers Like this: for i in 0 1 2 3 do echo $Names echo... (12 Replies)
Discussion started by: fongthai
12 Replies

3. UNIX for Advanced & Expert Users

While Read with in a While Read

I am having a problem where I am doing a double read of 2 file and it kicks me out after it performs the first read of both files. What I need it to do is continue to do the reads of both files. Read the first file line 1, then go through the second file and read all lines, then go back to the... (2 Replies)
Discussion started by: nixman
2 Replies

4. Programming

Read/Write a fairly large amount of data to a file as fast as possible

Hi, I'm trying to figure out the best solution to the following problem, and I'm not yet that much experienced like you. :-) Basically I have to read a fairly large file, composed of "messages" , in order to display all of them through an user interface (made with QT). The messages that... (3 Replies)
Discussion started by: emitrax
3 Replies

5. Emergency UNIX and Linux Support

Read file and change a 0 to a 1 in output

<key>ExcludeSimpleHostnames</key> <integer>0</integer> <key>FTPPassive</key> Need simple command that will change the 0 to a 1 in this file when I grep it, but only for this integer key directly after the ExcludeSimpleHostnames key. I got this output code... (8 Replies)
Discussion started by: glev2005
8 Replies

6. Fedora

Read only disks on Linux system

Hi guys I have a SSL server that is running Fedora 9. I wanted to create a directory but get: mkdir: cannot create directory `test': Read-only file system Any ideas? (4 Replies)
Discussion started by: wbdevilliers
4 Replies

7. UNIX for Dummies Questions & Answers

Read a file

Hi I have a file in which data is in this format 123456,112233445566,400,ABCDEF,790 123450,123456789798,300,QWERTY,987 . . . I mean to say I want to read data until I encounter a comma. So I want to read the file and read first 123456 and write it to file. Then read 112233....and so on. ... (5 Replies)
Discussion started by: sampandey31
5 Replies

8. Programming

C Programming.. Typecasting of structure pointers..

Hi, I need to pass a typecasted structure pointer of one structure to another structure pointer.. The parameters of both structures are different say if first structure has int, char datatypes and second structure has float, double,char.. Please help.. I need to get the values of one... (3 Replies)
Discussion started by: Priya Amaresh
3 Replies

9. Shell Programming and Scripting

Read from one file-Replace a pattern in another with the current one

Hi Friends, I have a text file like this cat main.txt I like this website cat website > new_website grep website > hello_website cat replace.txt hello unix apple Now, for each line read in 2.txt, I want the pattern "website" in 1.txt to be replaced with it. Basically, I... (9 Replies)
Discussion started by: jacobs.smith
9 Replies

10. Shell Programming and Scripting

Read File and check records for length

I need a script that will run in unix to: 1) Read and input file with 1 column that contains for ex: 0123456789 1234567890 ...etc 2) Checks the first column if it is: a. Numeric from 0 - 9 b. if it is not less... (4 Replies)
Discussion started by: mrn6430
4 Replies

11. Shell Programming and Scripting

awk to parse huge files

Hello All, I have a situation as below: (1) Read a source file (a single file of 1.2 million rows in it ) (2) Read Destination files one by one and replace the content ( few fields in it ) with the corresponding matching field from source file. I tried as below: ( please note I am not... (4 Replies)
Discussion started by: panyam
4 Replies

12. Shell Programming and Scripting

[Bash] Read History function & Read Arrowkeys

Hi. How can I create a history function? (By "read" command or so) & How can I configure a read command so that the arrow keys are not displayed so funny? (^[[A) Thanks in advance. (4 Replies)
Discussion started by: sinnlosername
4 Replies

13. Linux

Read only access for Group called "Developers" to all folders on the Centos 6.6

Linux Gurus, I need to provide Read only access for particular group of users, they should have Read only access to entire server except their Home directory. I tried using setfacl that's not helping. Can you please suggest is there any other alternate way to address this request. Your help is... (5 Replies)
Discussion started by: shekar777
5 Replies

14. Shell Programming and Scripting

Read from last point

Hi again, first thanks for all your suggestions. This forum it is very useful. I have a question. Is it possible to read from the last line a file was closed. For example, imagine that i've got a file with a LOT of timestamps : 1467387616.868717770 1467387616.874189609... (4 Replies)
Discussion started by: Board27
4 Replies