GCC Program for Remote Procedure Call (RPC) in C Programming /************************************************************************** TITLE: RPC - REMOTE PROCEDURE CALL **************************************************************************/ //SERVER FILENAME: server.c #include”rpc/rpc.h” #include”square.h” #include”stdio.h” #include”stdlib.h” #include”math.h” square_out *squareproc_1_svc(square_in *inp,struct svc_req *rqstp) { static square_out out; out.res1= inp->arg1 * inp->arg1; return(&out); } // CLIENT FILENAME: client.c #include”errno.h” #include”rpc/rpc.h” #include”square.h” #include”stdio.h” #include”stdlib.h” #include”math.h” int main(int argc,char **argv)(…)
Introduction to file handling in C Programming
Drawbacks of Traditional I/O System Until now we are using Console Oriented I/O functions. “Console Application” means an application that has a text-based interface. (black screen window)) Most applications require a large amount of data , if this data is entered through console then it will be quite time consuming task Main drawback of using(…)
FILE structure in C Programming
FILE structure in C Programming C Provides smart way to manipulate data using streams In stdio.h header file FILE structure is defined FILE structure provides us the necessary information about a FILE or stream which performs input and output operations Structure : typedef struct { short level ; short token ; short bsize ; char(…)
Standard File Input-Output Streams in C Programming
File I/O Streams in C Programming Language : In C all input and output is done with streams Stream is nothing but the sequence of bytes of data A sequence of bytes flowing into program is called input stream A sequence of bytes flowing out of the program is called output stream Use of Stream(…)
#pragma warn Macro Directive in C | Suppress Warning Messages
Topics : How to Suppress Warning Messages in C ? What is Warning Message in C ? What is Error and Message in C ? #pragma warn Directive in C Live Example List of Warning Codes in ANSI Warning Message : A warning is a non-critical condition that does not require immediate attention. Warning can(…)
Pre-processor to Define String in C Programming
Pre-processor to Define String in C Programming Program to define Printf Statement using #define #include<stdio.h> #define PRINT printf(“%s”,str) void main() { char *str = “Pritesh”; PRINT; } Output : Pritesh Program to define String #include<stdio.h> #define STR “Pritesh Taral” void main() { printf(“%s”,STR); } Output: Pritesh Taral Program to use format specifier inside MACRO #include<stdio.h>(…)
How to Create Sample Hello World Application in Android ?
How to Create Sample Hello World Application in Android ? Step 1 : Open Eclipse IDE. Step 2 :Click on File -> New -> Other Project. Step 3 : New Dialog Box will be opened Step 4 : Select Android Project. Step 5 : Click on “Next” button. Step 6 : Now Create Project Window(…)
How to Create an AVD in Eclipe ?
How to Create an AVD in Eclipe ? You will run your application in the Android Emulator. Before you can launch the emulator, you must create an Android Virtual Device (AVD). An AVD defines the system image and device settings used by the emulator. Steps to be performed to Create an AVD in Eclipse IDE(…)
Application in Android | Steps to be followed to create Android Application
Application in Android We are going to create “Hello World” Application in Eclipse (in next tutorial). We need following tools to run Android Project - Eclipse IDE ADT Plugin Java Developer Kit We are going to Run Application using AVD [Android Virtual Device]. ADT plugin is useful tool which is intermediate tool which is used to(…)
How to Download Android SDK Setup ?
How to Download Android SDK Setup ? Step 1 : Download Android SDK Visit this site http://developer.android.com/sdk/index.html Download Android SDK from this url. Step 2 : Installing Android SDK Here’s an overview of the steps you must follow to set up the Android SDK: Prepare your development computer and ensure it meets the system requirements. Install(…)