Skip to content

Commit

Permalink
Stub for phone-number exercise (#142)
Browse files Browse the repository at this point in the history
resolves #138
  • Loading branch information
keiravillekode authored Jan 5, 2025
1 parent 8d4b850 commit 9ff44b1
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions exercises/practice/phone-number/phone-number.wat
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
(module
(memory (export "mem") 1)

;;
;; Clean up user-entered phone number
;;
;; @param {i32} textOffset - The offset of the input string in linear memory
;; @param {i32} textLength - The length of the input string in linear memory
;;
;; @returns {(i32,i32)} - The offset and length of the clean phone number in linear memory
;;
(func (export "clean") (param $textOffset i32) (param $textLength i32) (result i32 i32)
(return (local.get $textOffset) (local.get $textLength))
)
)

0 comments on commit 9ff44b1

Please sign in to comment.