I'm having trouble with reading information back into a program from a binary file. when i try to display the contents of the file i get a Memory fault(coredump). would anyone be able to assist?
this is my fread line
ive also tried it without the & but i still get the coredump.
thanks!
primal
here is some other information that might be required...
global variable
saving to file
function definition
Hi,
I have two Solaris machines.
1. SunOS X 5.8 Generic_108528-29 sun4u sparc SUNW,Sun-Blade-1500
2. SunOS Y 5.8 Generic_108528-13 sun4u sparc SUNW,Ultra-60
I am trying to buiild a project on both these machines. The Binary output file compiled on machine 2 runs on both the machines. Where... (0 Replies)
Hi,
I've searched and couldn't find anyone else with this problem. Is there anyway (preferably using ksh - but other script languages would do) that I can read in binary float data into a text file. The data (arrays from various stages of radar processing) comes in various formats, but mainly... (3 Replies)
I am using grep to match a pattern, but the output is strange.
$ grep -r -o "pattern" *
Gives me:
Binary file foo1 matches
Binary file foo2 matches
Binary file foo3 matches
To find the lines before/after, I then have to use the following on each file:
$ strings foo1 | grep -A1 -B1... (0 Replies)
this is my code and no matter what record number the user enters i cant get any of the records fields to read into the structure acct. What am i doing wrong?
#include <stdio.h>
typedef struct
{
char name;
int number;
float balance;
} acct_info_t;
int main (int... (0 Replies)
I am struck up with a problem and that is with output redirection.
I used all the ways for the redirection of the output of c binary to a file, still it is failing.
Here are the different ways which I have used:
./a.out | tee -a /root/tmp.txt 2>&1
./a.out | tee -a /root/tmp.txt 1>&1
./a.out |... (2 Replies)
Hello *nix specialists,
Im working for a non profit organisation in Germany to transport DSL over WLAN to people in areas without no DSL. We are using Linksys WRT 54 router with DD-WRT firmware There are at the moment over 180 router running but we have to change some settings next time. So my... (7 Replies)
Hello to all guys,
Maybe some expert could help me.
I have a working ruby script shown below that reads a big binary file (more than 2GB). The chunks of data I want to analyze
is separated by the sequence FF47 withing the binary. So, in the ruby script is defined as "line separator" =... (10 Replies)
Dear Gurus
I am stuck with the peice of work and do not know from where to start.
I get a machine generated file which is binary file contain binary data, i want to read binary data as it is without converting into any other format.
i want to read byte by byte.
Please let me know what... (24 Replies)
Discussion started by: guddu_12
24 Replies
LEARN ABOUT DEBIAN
glgetprogrambinary
GLGETPROGRAMBINARY(3G) [FIXME: manual] GLGETPROGRAMBINARY(3G)NAME
glGetProgramBinary - return a binary representation of a program object's compiled and linked executable source
C SPECIFICATION
void glGetProgramBinary(GLuint program, GLsizei bufsize, GLsizei *length, GLenum *binaryFormat, void *binary);
PARAMETERS
program
Specifies the name of a program object whose binary representation to retrieve.
bufSize
Specifies the size of the buffer whose address is given by binary.
length
Specifies the address of a variable to receive the number of bytes written into binary.
binaryFormat
Specifies the address of a variable to receive a token indicating the format of the binary data returned by the GL.
binary
Specifies the address an array into which the GL will return program's binary representation.
DESCRIPTION
glGetProgramBinary returns a binary representation of the compiled and linked executable for program into the array of bytes whose address
is specified in binary. The maximum number of bytes that may be written into binary is specified by bufSize. If the program binary is
greater in size than bufSize bytes, then an error is generated, otherwise the actual number of bytes written into binary is returned in the
variable whose address is given by length. If length is NULL, then no length is returned.
The format of the program binary written into binary is returned in the variable whose address is given by binaryFormat, and may be
implementation dependent. The binary produced by the GL may subsequently be returned to the GL by calling glProgramBinary(), with
binaryFormat and length set to the values returned by glGetProgramBinary, and passing the returned binary data in the binary parameter.
ERRORS
GL_INVALID_OPERATION is generated if bufSize is less than the size of GL_PROGRAM_BINARY_LENGTH for program.
GL_INVALID_OPERATION is generated if GL_LINK_STATUS for the program object is false.
ASSOCIATED GETS
glGetProgram() with argument GL_PROGRAM_BINARY_LENGTH
SEE ALSO
glGetProgram(), glProgramBinary()
COPYRIGHT
Copyright (C) 2010 Khronos Group. This material may be distributed subject to the terms and conditions set forth in the Open Publication
License, v 1.0, 8 June 1999. http://opencontent.org/openpub/.
[FIXME: source] 05/30/2012 GLGETPROGRAMBINARY(3G)