Category: C

C/C++ : Ascii to EBCDIC Converter

Continue from my last post about Convert EBCDIC to Ascii Convert, now I try to create a program with C/C++ to convert Ascii to EBCDIC (ascii to ebcdic converter). Create a file main.c and copy this code : /* * main.c * * Created on: Mar 22, 2011 * Author: toto */ #include <stdlib.h> #include

C/C++ : EBCDIC to Ascii Converter

ASCII is the American Standard Code for Information Interchange, also known as ANSI X3.4. There are many variants of this standard, typically to allow different code pages for language encoding, but they all basically follow the same format. ASCII is quite elegant in the way it represents characters, and it is very easy to write

Install Seplib Seismic Processing

SEPlib is an open-source software package for seismic data processing developed at the Stanford Exploration Project. We can download seplib at When I checked at this URL, I get new version of seplib is seplib-6.5.3. I get new seplib-7.0.4 when ask how to install seplib to Bob, so you can download seplib-7.04 at this

C/C++ declared with attribute warn_unused_result

I want to read a text file with C. This is my simple ilustration code : FILE *offsetFile=NULL; char *buffer; int cbyte; cbyte = 100; buffer = (char*) calloc (cbyte, sizeof(char)); offsetFile = fopen("listOffset.txt", "r"); if (offsetFile==NULL) { exit(0); } fgets (buffer, cbyte, offsetFile); When I compile this code I get warning message : ignoring