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 IamaSherpa 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. Kaotic

    NGAI R55 service center controlling Edge X appliance

    Has anyone had success with these? I have three that I just put in our staging environments, and I am having a very hard time with get them to register with the management / service center server. I was running HFA_08 on the mangement server and was able to register the appliances that were...
  2. Kaotic

    Question about Strings

    >> use /t for a tab /b for a single blank reply if it helped yogesh >> It helped a little, but the names still align unevenly since each set has a different amount of characters.
  3. Kaotic

    Question about Strings

    Blagh, pay no attention to the first half.
  4. Kaotic

    Question about Strings

    It's running okay now. But one more question. How do you align strings up? I'm trying to do this. fprintf(writefile1, "%d%6s%15s\n", id[i], botanical[i], common[i]); But it's coming out like this. Thanks, it's running okay now. But one more question. How do you align strings...
  5. Kaotic

    Question about Strings

    >> kaotic, there is absolutely no problem in this part of your code and there is no segmentation fault in this part it may be a a minor compile time fault depending upon you compiler but that has to do with the line seperator there may be segmentation fault in other parts this part of...
  6. Kaotic

    Question about Strings

    Nevermind that. I fixed it, but now I have another segmentation fault in this function for some reason. retailHeading(writefile1); void retailHeading(FILE *writefile1) { fprintf(writefile1, " Beautiful Plants, Inc.\n"); fprintf(writefile1, " Retail Plant...
  7. Kaotic

    Question about Strings

    Oh, and I don't know what happens to the i's. But it should come out like this. while (!feof (readfile) ) { fscanf( readfile, "%d%s%s%d%d%lf", &id[.i], botanical[.i], common[.i], &maxinv[.i], &stock[.i], cost[.i]); i++; }
  8. Kaotic

    Question about Strings

    Okay, thanks it worked. But now I'm getting a segmentation fault for this while loop. What should I do? while (!feof (readfile) ) { fscanf( readfile, "%d%s%s%d%d%lf", &id[i], botanical[i], common[i], &maxinv[i], &stock[i], cost[i]); i++; }
  9. Kaotic

    Question about Strings

    OK, I'm using pico on the unix system, and I'm trying to run a program with strings, arrays, functions, and file statements. How do I pass character string arrays to functions? I tried doing it like this, but I keep getting errors. char botanical[40][n], common[40][n]; /* n defined as 30*/...

Part and Inventory Search

Back
Top