Search:

Type: Posts; User: cfdprogrammer

Page 1 of 5 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    4
    Views
    1,095

    Apologies, I was deallocating another array...

    Apologies,

    I was deallocating another array within another function. That is what was causing the problem.

    Thanks again for helping.
    cfd
  2. Replies
    4
    Views
    1,095

    Hi, thanks for replying, but although I change...

    Hi, thanks for replying, but although I change the allocation following your suggestion, I am still getting the error the the pointer I am freeing was not allocated to begin with.

    I don't know...
  3. Replies
    4
    Views
    1,095

    free pointer to chars

    Hi all,

    I am having a problem I never had before when deallocating a pointer to char. I am not sure what I am doing wrong because I am using the same standard I have used other times.

    I am...
  4. Replies
    8
    Views
    10,911

    Hi Claudio, thanks for the quick reply. ...

    Hi Claudio, thanks for the quick reply.

    That's an option. I was not sure whether those functions would return an integer if it surely cannot be converted; I in fact imagined they would return...
  5. Replies
    8
    Views
    10,911

    isString to recognize strings

    Hi everyone,

    I have been looking for a sort of isstr function to recognize if a string read from a file is a string of characters or or a string of numbers, but apparently this function is not a...
  6. Replies
    8
    Views
    12,431

    Hi again, [QUOTE=hk_mp5kpdw;898314]#1 ...

    Hi again,



    I actually need to concatenate because the string name at hand depends on something that is done beforehand inside this function. About that I cant really do otherwise.



    Sorry...
  7. Replies
    8
    Views
    12,431

    Hi Sam, thanks fro helping. Yes, what I...

    Hi Sam,

    thanks fro helping. Yes, what I obtain is the error of inexistent file although the file is physically in the working directory.



    Error opening file: No such file or directory.

    ...
  8. Replies
    8
    Views
    12,431

    error fopen with existing file

    Hello,

    I am having a problem when I try to open a file from within a calling function.

    I have a main function that defines part of the string name of a file (the file already exists in the...
  9. Hi Quzah, Sorry about that, you are right....

    Hi Quzah,

    Sorry about that, you are right. Thanks fro helping.

    All the best,
    cfd
  10. Thank you!

    Thank you!
  11. But can I count the number of entries by using...

    But can I count the number of entries by using sscanf? I dont actually have to store them to any array, but only count them for a subsequent call to another function

    thank you again
  12. Hello Adak, Look, I have a similar issue to...

    Hello Adak,

    Look, I have a similar issue to this posted earlier today and to which you helped me find a solution; now, instead of being able to recognize the additional blank lines at the end of...
  13. Hi Adak and Quasah, Thank you very much to...

    Hi Adak and Quasah,

    Thank you very much to both. I actually tried all the options, and although both options suggested by work fine, I could not get Quasah's to work.
    What happens with Quasah's...
  14. Read a well defined number of lines only

    Hi everyone,

    I am trying to have a function that can read a file of floats.
    This is very straight forward and I did that with different types of files before; however, given that previously I...
  15. Replies
    13
    Views
    2,372

    Hi yezaim, thanks for helping. This is the...

    Hi yezaim,

    thanks for helping. This is the hint I needed. It is a problem in the use of doubles on a machine I barely started to use.

    Thank you again, I appreciate it
    Best
  16. Replies
    13
    Views
    2,372

    Hi Epy; it's not a matter of posting an...

    Hi Epy; it's not a matter of posting an unfinished code for someone to steal it. I have several of my own open source codes already online on my web. The only reason for not posting this one here is...
  17. Replies
    13
    Views
    2,372

    Hi idelovski, thanks for writing, SInce it is...

    Hi idelovski, thanks for writing,

    SInce it is kind of difficult to send the code or part of it, I can surely send the makefile:



    CC = gcc #Compiler is gcc
    LD = gcc -lm #Linker is gcc...
  18. Replies
    13
    Views
    2,372

    Hi again tabstop, I would like to show the...

    Hi again tabstop,

    I would like to show the code, but it's an actual software that I am developing and it has about 15 functions. What I did, I entered eachone of the them and changed the floats...
  19. Replies
    13
    Views
    2,372

    hi, actually, I would expect different results...

    hi, actually, I would expect different results within certain limits (after a certain floating point); what I am getting is NAN where I am supposed to obtain real value.

    I am not calling functions...
  20. Replies
    13
    Views
    2,372

    hi tabstop, This is the problem: when I code...

    hi tabstop,

    This is the problem: when I code my program using floats the software performs correctly, but when I change "float" with "double" everywhere, the code still compiles, but the...
  21. Replies
    13
    Views
    2,372

    double precision error on Mac OSX

    Hi users,

    I am having problems when I want to code in double precision and compile on a Max OSX, 10.5, darwin. I compile with gcc-4.0.1

    Would that be a compiler fault on the machine? Is it...
  22. Replies
    2
    Views
    954

    Hi, thanks for replying and trying to help. I...

    Hi, thanks for replying and trying to help.

    I indeed freed some memory from space that was not allcoated. I was allocating certain previous arrays with npts elements without noticing that npts was...
  23. Replies
    2
    Views
    954

    very strange passing of arguments

    Hi everyone,

    something very strange is happening in a very simple code;
    specifically, I have this function:



    void flinspace(float vmin, float vmax, int n, float *VECT)
    {
    //!!! VECT must...
  24. I actually have an array of pointers. I use two...

    I actually have an array of pointers. I use two and are structured as arrays of strings dynamically allocated. This is good start because I actually modified one of them recently. I'll check on that...
  25. Hi, thanks for replying. I may indeed be running...

    Hi, thanks for replying. I may indeed be running otu of memory since this is not happening on another machine with twice as much RAM. What is strange though, is that it does not "fail" when larger...
Results 1 to 25 of 115
Page 1 of 5 1 2 3 4