code_junkie

how do we call a c function from an sql script

Nov 13th, 2011
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. int get_next_fbill_b2kId_seq_num(b2kIdType seq_val,bankIdPtrType bank_id)
  2. {
  3. validate_dc_alias(dcAlias);
  4. tbaDateType sysDate;
  5. tbaGetSystemDateTime(sysDate,NULL,NULL); /* returns in TBA date format */
  6. sysDate[10] = EOS;
  7. get_seq_value(next_num_char, 0, FBILL_B2KID_SRL_NUM,bank_id,TBAFATAL);
  8. m_sprintf (seq_val, "%s%s%s", dcAlias, sysDate+8,next_num_char);
  9.  
  10. return(SUCCESS);
  11. }
Add Comment
Please, Sign In to add comment