User Tools

Site Tools


cdc:nos2.source:nam5871:nvfuzfw

NVFUZFW

Table Of Contents

  • [00005] ZERO FILL NAME.

Source Code

NVFUZFW.txt
  1. *DECK NVFUZFW
  2. PROC NVFUZFW(WORD);
  3. BEGIN
  4. #
  5. ** NVFUZFW - ZERO FILL NAME.
  6. *
  7. * D.K. ENDO 81/11/10
  8. *
  9. * THIS PROCEDURE ZERO FILLS A BLANK FILLED NAME.
  10. *
  11. * PROC NVFUZFW(WORD)
  12. *
  13. * ENTRY WORD = BLANK FILLED NAME.
  14. *
  15. * EXIT WORD = ZERO FILLED NAME.
  16. *
  17. * METHOD
  18. *
  19. * FOR EACH CHARACTER IN WORD,
  20. * IF CHARACTER IS A BLANK,
  21. * REPLACE BLANK WITH ZERO.
  22. *
  23. #
  24. ITEM WORD C(10); # WORD TO BE ZERO FILLED #
  25. DEF BLNK # O"55" #; # DISPLAY CODE FOR BLANK #
  26. ITEM I; # SCRATCH ITEM #
  27. # #
  28. # NVFUZFW CODE BEGINS HERE #
  29. # #
  30. FOR I=0 STEP 1 UNTIL 9 DO
  31. IF C<I,1>WORD EQ BLNK
  32. THEN
  33. C<I,1>WORD=O"00";
  34. RETURN;
  35. END # NVFUZFW #
  36. TERM;
cdc/nos2.source/nam5871/nvfuzfw.txt ยท Last modified: 2023/08/05 17:23 by Site Administrator