Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. scottgai

    C global variable initialization

    milenko Thanks for the explanation. But I still don't understand why the linker complain when I define variable as following: mya.c myb.c error occurs? ----------------------------------------------------- int tv; int tv; No int tv=10...
  2. scottgai

    C global variable initialization

    Much thanks for those reponses! I know using extern could eliminate the error. But what I really want to know is: in what way the linker treat the same global variables defined in two different files. I also did the following test: 1) using Unix gcc mya.c myb.c error...
  3. scottgai

    C global variable initialization

    Hi Gurus, I got confused about a C global variable question. There are 3 very simple C files: mya.c --------------------- #include <stdio.h> int tv=10; printav() { printf(&quot;&av= %x\tav = %d\n&quot;, &tv, tv); } ------------------------ myb.c ------------------------ #include...
  4. scottgai

    telnet was refused

    aixmurderer, Thanks a lot for your reponse! The line in file /etc/inetd.conf about telnet is listed below: &quot;telnet stream tcp nowait root /usr/sbin/in.telnetd in.telnetd&quot; And also there is a line in file /etc/services, which is listed here: &quot;telnet...
  5. scottgai

    telnet was refused

    Dear all, Please help me with this problem. I have a Sun box with the Solaris 7, and now got such a problem. when I want to telnet to this machine from other site, the system will refuse my request by say &quot;Unable to connect to remote host: Connection refused&quot;. This also will happen...
  6. scottgai

    standby database issue

    Hi, I encountered a problem about the ORACLE standby database. I created a standby database and when I enter the SQL statement &quot;recover standby database&quot; to recover it, I got the following message: SVRMGR> connect internal Connected. SVRMGR> recover standby database; ORA-00279: change...
  7. scottgai

    Oracle 8i - Java SDK Install on a P4 HELP!!!

    Hi, I also had such an experience and I found a solution on another website. Hope it will help. Workaround ~~~~~~~~~~ Not only will OUI be affected by this bug, most of the post-install configuration tools will also be affected. Running these tools with &quot;-nojit&quot; specified will...
  8. scottgai

    substr(RAW data)

    I have question like this: suppose I create a table: create table mytable(msg raw(254)); and there is a record in this table which contains the following message like: 616C6D6B000000...... I want to retrieve the first character from table mytable, I use such a sql statement: select...
  9. scottgai

    substr(RAW data)

    I have question like this: suppose I create a table: create table mytable(msg raw(254)); and there is a record in this table which contains the following message like: 616C6D6B000000...... I want to retrieve the first character from table mytable, I use such a sql statement: select...
  10. scottgai

    Question: about C pointer variable

    I agree with what Ankan's said. &quot;name&quot; is the variable name of an array. So &quot;&name&quot; is valued as the address of this variable, it's equivalent to &quot;&name[0]&quot;. Things would be different if the variable is defined as: char * name = &quot;scott&quot; This time...
  11. scottgai

    Question: about C pointer variable

    I was confused about such a fact: when I declare a array of char type like the following: char name[30]=&quot;scott&quot;; then I have a printf statement: printf(&quot;Addr: %x\n&Addr: %x\n&quot;, name, &name); I got the same value of these two address. who can tell me the reason about...

Part and Inventory Search

Back
Top