svm_read_line   xtlang


Defined in:  https://github.com/digego/extempore/tree/v0.8.9/libs/contrib/svm.xtm

Implementation

(bind-func svm_read_line
  (lambda (buf fp max_len)
    (let ((res (fgets buf max_len fp)))
      (cond ((null? res)
             (if (<> (feof fp) 0)
                 (println "Warning: error reading string"))
             #f)
            ((> (strnlen res max_len) max_len)
             (println "Error: encountered line length longer than" max_len)
             #f)
            (else #t)))))


Back to Index

Similar Entries

  • AudioBuffer_read    xtlang
  • AudioBuffer_read    xtlang
  • AudioBuffer_read_interp    xtlang
  • AudioBuffer_read_interp_mix    xtlang
  • AudioBuffer_read_interp_pw    xtlang
  • AudioBuffer_read_looped    xtlang
  • AudioBuffer_read_looped    xtlang
  • astra_readX    xtlang
  • astra_reader    xtlang
  • audiofile_aiff_read_samples    xtlang
  • audiofile_read_samples    xtlang
  • audiofile_wave_read_samples    xtlang
  • cerberus_moog_ladder_inlined    xtlang
  • circle_line    xtlang
  • draw_a_line    xtlang
  • draw_a_line    xtlang
  • dv_draw_line    xtlang
  • dv_draw_line_segments    xtlang
  • impc:compiler:print-already-bound-error    scheme
  • linear_c    xtlang
  • linear_mc_c    xtlang
  • make-timeline    scheme
  • midi_read_loop    xtlang
  • midi_read_msg    xtlang
  • moog_ladder_inlined    xtlang
  • nonblocking_read_loop    xtlang
  • nonblocking_read_loop    xtlang
  • nonblocking_read_loop    xtlang
  • nonblocking_read_loop    xtlang
  • ocv_imread    xtlang
  • ocv_imread    xtlang
  • ocv_imread    scheme
  • ocv_imread1    xtlang
  • ocv_imread2    xtlang
  • ocv_read    xtlang
  • ocv_read    xtlang
  • ocv_read    scheme
  • ocv_read1    xtlang
  • ocv_read2    xtlang
  • on_before_command_line_processing    xtlang
  • pipeline    xtlang
  • pipeline    xtlang
  • pipeline_stage    xtlang
  • pipeline_stage    xtlang
  • pipeline_stage    xtlang
  • read_and_write_frame    xtlang
  • reverse_inline    xtlang
  • sampler_note_linear    xtlang
  • set-data-arrays-lines    xtlang
  • sf_read_file_into_buffer    xtlang
  • svm_num_elements    xtlang
  • svm_parse_line    xtlang
  • svm_read_problem    xtlang
  • sys_file_read    xtlang
  • thread_native_call    xtlang
  • thread_native_call_with_zone    xtlang
  • xhid_read    xtlang
  • xtm_add_line    xtlang
  • xtm_add_line    xtlang
  • xtm_add_line    xtlang
  • xtm_add_lined    xtlang
  • xtm_draw_line    xtlang
  • xtm_draw_line    xtlang
  • xtm_draw_line    xtlang
  • xtm_draw_line    xtlang
  • xtm_draw_line    xtlang
  • xtm_draw_lined    xtlang