Re: Changes to the string library



Oliver Betz a écrit :
jacob navia <jacob@xxxxxxxxxxxxxxxx> wrote:

[...]


Rationale: Why complicate things with #defines? It is better to use the "overloaded" feature.


What says Lint about these changes?

Oliver

Ahh probably will not be very happy :-)

Another thing I forgot:

int Strncat(String str, FILE *stream,size_t nbytes);

This Strncat will add <nbytes> read from <stream> to the string <str>.
.



Relevant Pages

  • Re: parser needed
    ... static int tokenlen(const char *str, ... str - string containing expression ... ignores white space between tokens ...
    (comp.programming)
  • Re: Is anything easier to do in java than in lisp?
    ... In Linj you write: ... > argumentList in java. ... > int String.indexOf ... (position c str:from-end t) ...
    (comp.lang.lisp)
  • Re: Some questions on writing data to a serial port?
    ... int serial_write ... while (nbytes < count) { ... See my topic "Recalculate timeout after selectwhen reading from serial port?" ... For example, if you try to write to a network file system, it may succeed even when the server is down, because it simply writes to the buffer cache, which is flushed to the server asynchronously. ...
    (comp.unix.programmer)
  • Re: Reading a string of unknown size
    ... replace above with int main ... '2 * sizeof *str'. ... failed to check the return value of mallocabove for failure. ... You've overwritten your earlier nul character. ...
    (comp.lang.c)
  • Re: What is Pythons answer to Perl 6?
    ... >> Most of the suggested changes remove redundancy, such as removing ... str, slice, tuple, type ... In consequence: chr -> int ...
    (comp.lang.python)