| |
thread by: The Prisoner |
last post Jun 27 '08 by: Antoninus Twink
Hey-
I was reading about interrupts, and I got to thinking it would be a real
neat thing to use interrupts for program-wide exception handling. What I
haven't been able to find is a clear guide or example program for how to
install a C function into the IDT. And what happens about passing arguments?
I'd like to have something like this:
...
|
thread by: lavrey-2 |
last post Jun 27 '08 by: lavrey-2
http://watch-me.890m.com
|
thread by: Razik |
last post Jun 27 '08 by: Razii
On Wed, 30 Apr 2008 08:00:38 -0700 (PDT), Isaac Gouy
<igouy2@yahoo.comwrote:
Let's continue. Next we deal with sum-file...
http://shootout.alioth.debian.org/gp4/benchmark.php?test=sumcol&lang=all#about
"Programs should use built-in line-oriented I/O functions rather than
custom-code. No line will exceed 128 characters, including...
|
thread by: Igal |
last post Jun 27 '08 by: Eligiusz Narutowicz
hay, i have this werid problem with my book adding function, this how
it looks
book* AddBook(book *bp, unsigned *size) {
....
//then i use realloc to allocate space for the new item in the bp
pointer
bp = (book*)realloc(bp, sizeof(book));
....
}
|
thread by: kiskeke |
last post Jun 27 '08 by: kiskeke
here is the coolest site in the world, what I've talked about last
time: http://tinyurl.com/4e4smx
|
thread by: Raz |
last post Jun 27 '08 by: James Kanze
On Wed, 30 Apr 2008 21:54:37 GMT, Erik Wikströ
As I said, I will find the link again. His knowledge of C++ is just
fine.
http://www.builderau.com.au/video/soa/Rusty-s-message-to-C-programmers/0,2000064338,22432924p,00.htm
http://www.builderau.com.au/video/soa/Why-C-remains-relevant/0,2000064338,22432921p,00.htm
|
thread by: Gowtham |
last post Jun 27 '08 by: Szabolcs Borsanyi
Hi,
I had some C code written which initialized a global variable as:
FILE *yyerfp = stdout;
This used to work fine in older versions of gcc. Now, when I tried to
compile this code (with gcc 3.2.3),
I got errors like:
|
| |
thread by: Raman |
last post Jun 27 '08 by: Raman
Hi All,
I have two libs (libFirst.a and libSecond.a). Both libs contains a
common function func(). Now I want to link an application "app" with
these two libs as
gcc -o app libFirst.a libSecond.a app.c.
It gives( and it should ) multiple declaration error . Is there any
|
thread by: iavian |
last post Jun 27 '08 by: CBFalconer
I have a C Code like below with refers to both Oracle and Postgres
client libraries
#include "postgres.h"
#include "fmgr.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <oci.h>
|
thread by: friendfish |
last post Jun 27 '08 by: CBFalconer
Anyone can told me about the warrning which GCC generated as following:
"No newline at end of file"?
|
thread by: Bill Cunningham |
last post Jun 27 '08 by: Eric Sosman
I am stumped on this one. I tried two methods and something just doesn't
seem right. I'll try my new syle.
#include <stdio.h>
#include <stdlib.h>
main() {
srand(2000); /*seed unsigned */
printf("%u",rand());
}
|
thread by: Angus |
last post Jun 27 '08 by: muntyan
I need to convert a double to a 64 bit integer. I am using __int64
but could of course use a more portable type.
To perform the correct casts:
double d = 3.3;
__int64 i64;
i64 = *((__int64*)&d);
//And to convert back
d = *((double*)&i64);
|
thread by: lithiumcat |
last post Jun 27 '08 by: Chris Torek
Hi,
I'm not yet very confident in my use of standard terminology, so
please be kind if I'm mis-calling something, I will do my best no to
make it again once pointed out.
I'm wondering what is the lifetime or a compile-time string constant,
I think that is what is called the storage duration of a string
litteral.
|
thread by: sophia |
last post Jun 27 '08 by: Richard Harter
Dear all,
How good is this function which is used to find the no: of nodes
in each level of the binary tree. ?
int arrlev;
void preorder(struct btree *n,int lev)
{
|
thread by: =?ISO-8859-1?Q?Tom=E1s_=D3_h=C9ilidhe?= |
last post Jun 27 '08 by: Richard Bos
On May 3, 8:09*am, apati...@gmail.com wrote:
A programmer that uses Vista? :O
Vista is a hog of an operating system. Downgrade to Windows XP or get
yourself a Linux distro.
|
| |
thread by: lithiumcat |
last post Jun 27 '08 by: Richard Bos
Hi,
I bothered you a while back about storing integer values in void*. Now
in a completely unrelated context, I'm trying to store pointer values
in an integer type.
So the basic question is, is it possible to convert a pointer into an
integer, and then later (but on the same execution environment, ie the
program has not exited, thus it's...
|
thread by: nembo kid |
last post Jun 27 '08 by: Vitalij
I need of your advice. A good link where I can learn linked lists with
recursive method (reverse, merge, sort, insertion and so on); well
commented and explained.
|
thread by: tobiaszwawrzyniak |
last post Jun 27 '08 by: tobiaszwawrzyniak
Best Video..!! sexxx
http://rozrywka.yeba.pl/show.php?id=2073
http://rozrywka.yeba.pl/show.php?id=2079
|
thread by: iavian |
last post Jun 27 '08 by: iavian
I am trying to compile a code that includes header from both oracle
and postgres
/usr/local/pgsql/include/server/c.h:420: error: conflicting
declaration 'typedef struct varlena text'
/opt/oracle/product/10.2.0/rdbms/public/oratypes.h:196: error: 'text'
has a previous declaration as `typedef oratext text'
How do i fix this ?
|
thread by: SHAOLIN |
last post Jun 27 '08 by: SHAOLIN
MUDE SUA VIDA PARE DE JOGAR NA MEGA SENA!
Opções
Modo de exibição padrão Exibir como árvore
Texto proporcional Texto fixo
|
thread by: arnuld |
last post Jun 27 '08 by: Barry Schwarz
On Mon, 05 May 2008 18:55:44 -0700, Barry Schwarz wrote:
ok, I changed the name to string_copy
yes, I could have used array-indexing too but I am quite weak at
|
thread by: jt |
last post Jun 27 '08 by: cr88192
hey guys..
can anybody suggest a code tht would save the graphics image saved in
C to jpg file.
is it available in the net.
plz tell the links.
|
thread by: xyz |
last post Jun 27 '08 by: CBFalconer
I have a string
16:23:18.659343 131.188.37.230.22 131.188.37.59.1398 tcp 168
for example lets say for the above string
16:23:18.659343 -- time
131.188.37.230 -- srcaddress
22 --srcport
131.188.37.59 --destaddress
1398 --destport
tcp --protocol
|
| |
thread by: Kevin |
last post Jun 27 '08 by: Keith Thompson
Source:
#include <stdio.h>
#include <ctype.h>
void main()
{
char a="this is the beautiful world!";
char b;
strcpy(b,a);
printf("char array b size is(%d),The content of b is:%s\n",sizeof(b),b);
if(strcmp(a,b)==0)
|
thread by: nembo kid |
last post Jun 27 '08 by: Chris Torek
I have the following bidimensional array
int a ;
Why the first address of this array is only:
& (mat)
and not also:
|