MySQL 8.0.39
Source Code Documentation
s_mysql_example_math Struct Reference

A Service for example basic math functionality. More...

#include <example_services.h>

Public Attributes

mysql_service_status_t(* calculate_gcd )(int a, int b, int *result)
 Calculates Greatest Common Divisor for given two non-negative numbers. More...
 

Detailed Description

A Service for example basic math functionality.

Member Data Documentation

◆ calculate_gcd

mysql_service_status_t(* s_mysql_example_math::calculate_gcd) (int a, int b, int *result)

Calculates Greatest Common Divisor for given two non-negative numbers.

Parameters
aFirst number to calculate GCD of.
bSecond number to calculate GCD of.
[out]resultA pointer to integer variable to store result in.
Returns
Status of performed operation
Return values
falsesuccess
truefailure

The documentation for this struct was generated from the following file: