Skip to content

Commit 5550183

Browse files
added ResultCallback function pointer documentation
1 parent 07d4f8a commit 5550183

File tree

1 file changed

+8
-0
lines changed
  • NUB_Admission_Costing_Calculator/docs

1 file changed

+8
-0
lines changed

NUB_Admission_Costing_Calculator/docs/test.txt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,14 @@
33
You should know:
44
- D_ prefix is used for Diploma Holder functions.
55

6+
typedef void (*ResultCallback)(const char *)
7+
- Defines a function pointer type named ResultCallback.
8+
- ResultCallback is a pointer to a function that takes a single argument of type `const char *` and returns nothing (void).
9+
- It is used to pass functions as arguments to other functions, allowing for custom behavior when those functions are called.
10+
11+
NOTE: This type definition allows for greater flexibility and modularity in the code by enabling functions
12+
to accept different callback implementations that conform to the specified signature.
13+
614
void getwaiver(float SSC, float HSC)
715
- Determines the waiver percentage based on the lower of two results between SSC and HSC.
816
- Result higher than than 5.0 is kept for GOLDEN GPA 5.

0 commit comments

Comments
 (0)