proj.c File Reference

This program is to act like a client for writing exam. More...

#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <mysql/mysql.h>
#include <gtk/gtk.h>
#include <unistd.h>
#include <strings.h>
#include <sys/socket.h>
#include <sys/types.h>
#include <arpa/inet.h>
#include <netinet/in.h>

Go to the source code of this file.

Defines

#define BUFFER   4096

Functions

void print_result1 (GtkWidget *widget1, gpointer data)
 This method is used to show dialogue boxes containing questions.
void button_toggled1 (GtkWidget *widget1, gpointer data)
void button_toggled2 (GtkWidget *widget1, gpointer data)
void button_toggled3 (GtkWidget *widget1, gpointer data)
void button_toggled4 (GtkWidget *widget1, gpointer data)
void end_program (GtkWidget *widget1, gpointer data)
 This is where program acts like a client.
void display_row ()
 This is used to display rows of tables.
int main (int argc, char *argv[])
 This is where program starts.

Variables

int argc1
char * argv1 []
int ans [10] = {3,1,2,4,1,4,2,1,3,3}
int ans_given [5] = {0,0,0,0,0}
int marks = 0
char r [100][200]
int rind = 0
MYSQL_ROW sqlrow
MYSQL * connection1
MYSQL_RES * res
GtkWidget * radio1
GtkWidget * radio2
GtkWidget * radio3
GtkWidget * radio4
GtkWidget * window
GtkWidget * button
GtkWidget * box1
GtkWidget * q1
int option1 [10] = {1,1,1,1,1,1,1,1,1,1}
int i = 0
int p = 0


Detailed Description

This program is to act like a client for writing exam.

Author:
Raghavendar and chandan
Version:
1.0

Definition in file proj.c.


Define Documentation

#define BUFFER   4096

Definition at line 20 of file proj.c.

Referenced by end_program(), and main().


Function Documentation

void button_toggled1 ( GtkWidget *  widget1,
gpointer  data 
)

Definition at line 271 of file proj.c.

References i, and option1.

Referenced by main(), and print_result1().

void button_toggled2 ( GtkWidget *  widget1,
gpointer  data 
)

Definition at line 276 of file proj.c.

References i, and option1.

Referenced by main(), and print_result1().

void button_toggled3 ( GtkWidget *  widget1,
gpointer  data 
)

Definition at line 281 of file proj.c.

References i, and option1.

Referenced by main(), and print_result1().

void button_toggled4 ( GtkWidget *  widget1,
gpointer  data 
)

Definition at line 285 of file proj.c.

References i, and option1.

Referenced by main(), and print_result1().

void display_row (  ) 

This is used to display rows of tables.

Definition at line 47 of file proj.c.

References connection1, r, rind, and sqlrow.

Referenced by main().

void end_program ( GtkWidget *  widget1,
gpointer  data 
)

This is where program acts like a client.

client

Definition at line 157 of file proj.c.

References argc1, argv1, BUFFER, and marks.

Referenced by print_result1().

int main ( int  argc,
char *  argv[] 
)

This is where program starts.

Parameters:
argc Number of arguments passed to program
argv Array of arugments passed to program
Returns:
0 if program exits properly, number otherwise.

Definition at line 66 of file proj.c.

References argc1, argv1, box1, button, button_toggled1(), button_toggled2(), button_toggled3(), button_toggled4(), connection1, display_row(), p, print_result1(), q1, r, radio1, radio2, radio3, radio4, res, sqlrow, and window.

void print_result1 ( GtkWidget *  widget1,
gpointer  data 
)

This method is used to show dialogue boxes containing questions.

Definition at line 294 of file proj.c.

References ans, box1, button, button_toggled1(), button_toggled2(), button_toggled3(), button_toggled4(), end_program(), i, marks, option1, p, q1, r, radio1, radio2, radio3, radio4, and window.

Referenced by main().


Variable Documentation

int ans[10] = {3,1,2,4,1,4,2,1,3,3}

Definition at line 23 of file proj.c.

Referenced by print_result1().

int ans_given[5] = {0,0,0,0,0}

Definition at line 23 of file proj.c.

int argc1

Definition at line 21 of file proj.c.

Referenced by end_program(), and main().

char* argv1[]

Definition at line 22 of file proj.c.

Referenced by end_program(), and main().

GtkWidget* box1

Definition at line 32 of file proj.c.

Referenced by main(), and print_result1().

GtkWidget* button

Definition at line 31 of file proj.c.

Referenced by main(), and print_result1().

MYSQL* connection1

Definition at line 27 of file proj.c.

Referenced by display_row(), and main().

int i = 0

int marks = 0

Definition at line 24 of file proj.c.

Referenced by end_program(), and print_result1().

int option1[10] = {1,1,1,1,1,1,1,1,1,1}

int p = 0

Definition at line 43 of file proj.c.

Referenced by main(), and print_result1().

GtkWidget* q1

Definition at line 33 of file proj.c.

Referenced by main(), and print_result1().

char r[100][200]

Definition at line 25 of file proj.c.

Referenced by display_row(), main(), and print_result1().

GtkWidget* radio1

Definition at line 29 of file proj.c.

Referenced by main(), and print_result1().

GtkWidget * radio2

Definition at line 29 of file proj.c.

Referenced by main(), and print_result1().

GtkWidget * radio3

Definition at line 29 of file proj.c.

Referenced by main(), and print_result1().

GtkWidget * radio4

Definition at line 29 of file proj.c.

Referenced by main(), and print_result1().

MYSQL_RES* res

Definition at line 28 of file proj.c.

Referenced by main().

int rind = 0

Definition at line 25 of file proj.c.

Referenced by display_row().

MYSQL_ROW sqlrow

Definition at line 26 of file proj.c.

Referenced by display_row(), and main().

GtkWidget* window

Definition at line 30 of file proj.c.

Referenced by main(), and print_result1().


Generated on Wed Apr 7 23:09:30 2010 for project by  doxygen 1.5.8